Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcos-cli: remove gopath #47677

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


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