Skip to content

Commit

Permalink
dcos-cli: remove gopath
Browse files Browse the repository at this point in the history
Closes #47677.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
  • Loading branch information
alebcay authored and chenrui333 committed Dec 10, 2019
1 parent 84d3f4f commit e7650dc
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Formula/dcos-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,15 @@ class DcosCli < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
ENV["NO_DOCKER"] = "1"
ENV["VERSION"] = version.to_s

ENV["VERSION"] = "1.1.0"

bin_path = buildpath/"src/github.com/dcos/dcos-cli"

bin_path.install Dir["*"]
cd bin_path do
system "make", "darwin"
bin.install "build/darwin/dcos"
end
system "make", "darwin"
bin.install "build/darwin/dcos"
end

test do
run_output = shell_output("#{bin}/dcos --version 2>&1")
assert_match "dcoscli.version=1.1.0", run_output
assert_match "dcoscli.version=#{version}", run_output
end
end

0 comments on commit e7650dc

Please sign in to comment.