1

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 2

1

Judging 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.)

Sign up to request clarification or add additional context in comments.

Comments

0

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.com/rcmdnk/homebrew-file

https://github.com/Homebrew/homebrew-bundle/issues/1633#event-16602768675 is my GitHub issue.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.