Can the Brewfile & brew bundle install track that certain packages were installed without dependencies? #5350
Replies: 2 comments 1 reply
-
Installing brew packages without dependencies is not really a supported case for Homebrew. The option is there, but there are no easy ways to do this in a bundle on purpose |
Beta Was this translation helpful? Give feedback.
-
To skip installation of dependencies, add this to your Brewfile: Alternatively, you could do this to leave node unlinked: The former would require an inversion of your workflow (edit Brewfile by hand, install packages w/ |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
I have a package (prettier) that has a dependency of node. I manage node with a different tool and do not want brew to install node.
I store my Brewfile in my dotfiles repo, and use it to spin up new machines. Every time I run brew install/uninstall/etc, I dump a new Brewfile and commit it to my dotfiles repo. I would like to be able to just
brew bundle install
on a new system.I can
brew install prettier --ignore-dependencies
, which is fine. But there is no indication of--ignore-dependencies
in the resultingbundle dump
output (the line is justbrew "prettier"
).This makes it a non-starter for me to install any package without their deps, since
brew bundle install
on a new system would install deps.Beta Was this translation helpful? Give feedback.
All reactions