From c215cffd531672574dffde6043b70d1eb0a43ebd Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Wed, 11 Sep 2019 06:51:27 -0700 Subject: [PATCH] Add bash completion to homebrew formula (#676) --- .goreleaser.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 73acf7e7..d0bf216f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -67,5 +67,10 @@ brew: folder: Formula homepage: https://golangci.com description: Fast linters runner for Go. + install: | + bin.install "golangci-lint" + output = Utils.popen_read("#{bin}/golangci-lint completion bash") + (bash_completion/"golangci-lint").write output + prefix.install_metafiles test: | system "#{bin}/golangci-lint --version"