Skip to content

Commit

Permalink
nats-server: remove gopath
Browse files Browse the repository at this point in the history
Closes #48070.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
alebcay authored and fxcoudert committed Dec 21, 2019
1 parent 3ec5d2d commit 8fa681f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Formula/nats-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ class NatsServer < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "off"
mkdir_p "src/github.com/nats-io"
ln_s buildpath, "src/github.com/nats-io/nats-server"
buildfile = buildpath/"src/github.com/nats-io/nats-server/main.go"
system "go", "build", "-v", "-o", bin/"nats-server", buildfile
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"nats-server"
prefix.install_metafiles
end

plist_options :manual => "nats-server"
Expand Down

0 comments on commit 8fa681f

Please sign in to comment.