I want to split up my Brewfile into multiple Brewfiles to separate some programs and apps into different sections and I can do some easy customisation of new MacOS machines and install specific Brewfiles for certain packages.
Here is a link to the docs I read. Now I'm trying to use the file
or brewfile
commands to load a Brewfile.
Here is a short example of what I have and what I believe should be working:
brewfile "brewfiles/work.Brewfile"
brewfile "brewfiles/devtools.Brewfile"
The files exist and should be valid Brewfiles. When I run a brew bundle
command, I get this error:
❯ brew bundle check --verbose
Error: Invalid Brewfile: undefined method `brewfile' for an instance of Bundle::Dsl
I don't understand because the docs I've linked directly talk about this command, so I don't know why it is "undefined".
Using the file
command gives the exact same error but swap brewfile
for file
.
I want to split up my Brewfile into multiple Brewfiles to separate some programs and apps into different sections and I can do some easy customisation of new MacOS machines and install specific Brewfiles for certain packages.
Here is a link to the docs I read. Now I'm trying to use the file
or brewfile
commands to load a Brewfile.
Here is a short example of what I have and what I believe should be working:
brewfile "brewfiles/work.Brewfile"
brewfile "brewfiles/devtools.Brewfile"
The files exist and should be valid Brewfiles. When I run a brew bundle
command, I get this error:
❯ brew bundle check --verbose
Error: Invalid Brewfile: undefined method `brewfile' for an instance of Bundle::Dsl
I don't understand because the docs I've linked directly talk about this command, so I don't know why it is "undefined".
Using the file
command gives the exact same error but swap brewfile
for file
.
2 Answers
Reset to default 1Judging by the documentation here the command you should be using with brewfiles is brew file
, not brew bundle
.
(homebrew-bundle (brew bundle
) is a separate project.)
I posted on HomeBrew's bundle GitHub repo and quickly found out that this is a different tool, you can see it here: https://github/rcmdnk/homebrew-file
https://github/Homebrew/homebrew-bundle/issues/1633#event-16602768675 is my GitHub issue.