From b41f24b6b94b76fd3feb2a18657d15f433e6ea18 Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Tue, 10 Sep 2019 10:19:16 -0700 Subject: [PATCH] Add bash completion to homebrew formula --- .goreleaser.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 73acf7e76403..d0bf216fce8c 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"