admin管理员组文章数量:1410717
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.
本文标签: homebrewseparating Brewfiles and loading them in chunksStack Overflow
版权声明:本文标题:homebrew - separating Brewfiles and loading them in chunks - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745021358a2638147.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论