From 3663360122a60cf2e3a5429cf9a25357508e9c1c Mon Sep 17 00:00:00 2001 From: Jacopo Andrea Giola Date: Tue, 25 Jun 2024 15:42:36 +0200 Subject: [PATCH] build: add autocomplete generation during brew install --- .goreleaser.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f14ce10..ee08992 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -70,7 +70,12 @@ brews: commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" directory: Formula - install: bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}" + install: | + bin.install "{{ .ArtifactName }}" => "{{ .Env.CMDNAME }}" + + chmod 0555, bin/"{{ .Env.CMDNAME }}" # generate_completions_from_executable fails otherwise + generate_completions_from_executable(bin/"{{ .Env.CMDNAME }}", "completion") + homepage: "https://www.mia-platform.eu" description: "{{ .Env.DESCRIPTION }}"