Upgrading already installed transitive dependencies for formulae in Brewfile #6449
Unanswered
rgoldberg
asked this question in
Everyday usage
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
My PR check GHA workflow runs
brew update;brew bundle upgrade
to install / upgrade all the linters it uses. One of the linters depends on node. node on the macOS-26 GHA runner is out-of-date. If I do not upgrade node to the latest, the linter fails.brew bundle upgrade
doesn't upgrade node unless I manually include node in my Brewfile.Is there any way to transitively install / upgrade all dependencies of the formulae in my bootstrap Brewfile?
I don't want to run
brew upgade
because that would upgrade tons of formulae not used by my GHA workflow.I don't want to manually include node or other transitive dependencies in my Brewfile, because the transitive dependencies might change, so future transitive dependencies wouldn't be automatically included in my Brewfile, or vestigial transitive dependencies might unnecessarily be installed / upgraded after they are no longer used by the formulae whose commands I actually need to use.
I've verified that no formulae have been pinned.
I currently run the following after
brew bundle upgrade
, which fixes the issue, but it seems overly verbose:brew upgrade -q "${(f)$(brew deps --union "${(f)$(brew bundle list)}")}"
I specifically get the following errors on a macOS-26 GHA runner when I don't manually include node in my Brewfile:
When running markdownlint-cli2:
dyld[21857]: Library not loaded: /opt/homebrew/opt/simdjson/lib/libsimdjson.26.dylib
Referenced from: <12674561-7DD5-30FE-82CA-77CDED64C8E1> /opt/homebrew/Cellar/node/24.8.0/bin/node
And when running yamllint
Reason: tried: '/opt/homebrew/opt/simdjson/lib/libsimdjson.26.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/simdjson/lib/libsimdjson.26.dylib' (no such file), '/opt/homebrew/opt/simdjson/lib/libsimdjson.26.dylib' (no such file), '/opt/homebrew/Cellar/simdjson/4.0.7/lib/libsimdjson.26.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/simdjson/4.0.7/lib/libsimdjson.26.dylib' (no such file), '/opt/homebrew/Cellar/simdjson/4.0.7/lib/libsimdjson.26.dylib' (no such file)
Beta Was this translation helpful? Give feedback.
All reactions