GoReleaser: Switch to homebrew_casks from brews#672
GoReleaser: Switch to homebrew_casks from brews#672tangrufus wants to merge 1 commit intoroots:masterfrom
homebrew_casks from brews#672Conversation
GoReleaser has deprecated [`brews`](https://goreleaser.com/customization/publish/homebrew_formulas/) since v2.10 (June 8, 2025). See: https://goreleaser.com/blog/goreleaser-v2.10/
| caveats: |- | ||
| ## Virtualenv | ||
|
|
||
| trellis-cli uses Virtualenv to manage dependencies such as Ansible which it |
There was a problem hiding this comment.
This message basically replaces homebrew's broken autocomplete install? I'm good with this if so
There was a problem hiding this comment.
Yes.
I found no easy way to make homebrew install auto completion. Therefore, show the message to ask users to $ eval "$(trellis shell-init zsh)" and $ trellis --autocomplete-install manually
|
Side note: Now with |
|
@tangrufus that's a good call |
|
Let's hold off on merging this for now. @retlehs brought up a good point that ideally we just get trellis-cli into Homebrew core but that would require the Formula running Casks are more correct for pre-built binaries but are generally associated with "desktop apps". We will play the game if we have to, but if a formula requires |
GoReleaser has deprecated
brewssince v2.10 (June 8, 2025).See: https://goreleaser.com/blog/goreleaser-v2.10/
Close #669
Homebrew shell completion installation is currently (v1.18.0) broken. Root cause is unknown.
https://github.com/roots/homebrew-tap/blob/1f351691393a4c5d1a9979a41a7981b7fe078824/Formula/trellis-cli.rb#L47 is not triggered. My
.zshrcwasn't modified. Thus, no shell completion is installed.I couldn't add
$ trellis--autocomplete-installto post-install hook because it cannot be ran twice:My failed attempt:
hooks: post: install: | if OS.mac? system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/trellis"] end + system_command "#{HOMEBREW_PREFIX}/bin/trellis", args: ["--autocomplete-install"] + pre: + uninstall: | + system_command "#{HOMEBREW_PREFIX}/bin/trellis", args: ["--autocomplete-uninstall"]Migration
When we release the next tag, we have to delete https://github.com/roots/homebrew-tap/blob/master/Formula/trellis-cli.rb
If anyone using brew bundle: