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:
parent
cf219628f3
commit
d2dacdb08c
1 changed files with 3 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue