Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

goreleaser: generate completions from brew Formula#170

Merged
sameersbn merged 1 commit intomainfrom
goreleaser-brew-completions
Dec 5, 2022
Merged

goreleaser: generate completions from brew Formula#170
sameersbn merged 1 commit intomainfrom
goreleaser-brew-completions

Conversation

@sameersbn
Copy link
Copy Markdown
Contributor

@sameersbn sameersbn commented Dec 1, 2022

Since goreleaser is now used to generate the brew formula for triggermesh/homebrew-cli/tmctl.rb, we need to ensure the generated formula also generates the shell completion. The support for writing brew stuff in goreleaser is pretty limited and I was unable to figure out how to install downloaded binary named (f.e) tmctl_macOS_amd64 to be installed with the name tmctl and then execute tmctl completion....

A workaround for this issue was to release tmctl as archives which contained the tmctl binary, making it possible to install the tmctl binary as-is. The install.sh script has also be updated to reflect this change.

As a result of this PR, not only do we have completions generated properly as before, but also the download time would have been greatly reduced.

@sameersbn sameersbn self-assigned this Dec 1, 2022
Copy link
Copy Markdown
Member

@tzununbekov tzununbekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRs with descriptions are easier to understand

@sameersbn sameersbn force-pushed the goreleaser-brew-completions branch 2 times, most recently from fc354a1 to a997aa7 Compare December 5, 2022 11:57
@sameersbn sameersbn force-pushed the goreleaser-brew-completions branch from a997aa7 to b13283e Compare December 5, 2022 12:08
@sameersbn sameersbn requested a review from tzununbekov December 5, 2022 12:08
@sameersbn
Copy link
Copy Markdown
Contributor Author

@tzununbekov please take another look. PR description has been added to describe the change

@sameersbn sameersbn merged commit 08be377 into main Dec 5, 2022
@sameersbn sameersbn deleted the goreleaser-brew-completions branch December 5, 2022 12:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants