SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

cask/caskroom: harden Linux Caskroom group lookup

- Memoize `expected_caskroom_group` to avoid repeated `Etc.getgrgid` calls.
- Rescue `ArgumentError` to cover misconfigured NSS setups, matching the
  pattern in `Utils::UID.uid_home`.
- Stub `Etc.getgrgid` in the Linux spec for determinism and reset the
  memoization between examples.
X
Xuehai Pan committed
1007141e8f41ba4c9acfb24c182a85f2eea13778
Parent: 35b6d87