From d3ba5bca27802b29b539aacbefe3ddda541e68db Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Thu, 19 Dec 2019 01:23:19 -0500 Subject: [PATCH] mmark: remove gopath Closes #48049. Signed-off-by: Jonathan Chang --- Formula/mmark.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Formula/mmark.rb b/Formula/mmark.rb index fa0dbbe601..74f130d1a5 100644 --- a/Formula/mmark.rb +++ b/Formula/mmark.rb @@ -19,14 +19,9 @@ class Mmark < Formula end def install - ENV["GOPATH"] = buildpath - - (buildpath/"src/github.com/mmarkdown/mmark").install buildpath.children - cd "src/github.com/mmarkdown/mmark" do - system "go", "build", "-o", bin/"mmark" - man1.install "mmark.1" - prefix.install_metafiles - end + system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"mmark" + man1.install "mmark.1" + prefix.install_metafiles end test do