terraform-docs: remove gopath

Update Formula/terraform-docs.rb

Co-Authored-By: Khosrow Moossavi <khos2ow@gmail.com>

Closes #47860.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Rui Chen 2019-12-13 23:41:34 -05:00
parent cf219628f3
commit d2dacdb08c

View file

@ -15,15 +15,9 @@ class TerraformDocs < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/segmentio/terraform-docs"
dir.install buildpath.children
cd dir do
system "make", "build-darwin-amd64"
bin.install "bin/darwin-amd64/terraform-docs"
prefix.install_metafiles
end
system "make", "build"
bin.install "bin/darwin-amd64/terraform-docs"
prefix.install_metafiles
end
test do