lazydocker: simplify
Closes #44278. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
825a94db1f
commit
c49c713d6f
1 changed files with 2 additions and 10 deletions
|
@ -15,16 +15,8 @@ class Lazydocker < Formula
|
|||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GO111MODULE"] = "on"
|
||||
ENV["GOPATH"] = buildpath
|
||||
|
||||
dir = buildpath/"src/github.com/jesseduffield/lazydocker"
|
||||
dir.install buildpath.children
|
||||
|
||||
cd dir do
|
||||
system "go", "build", "-mod", "vendor", "-ldflags", "-X main.version=#{version}", "-o", bin/"lazydocker"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
system "go", "build", "-mod=vendor", "-o", bin/"lazydocker",
|
||||
"-ldflags", "-X main.version=#{version} -X main.buildSource=homebrew"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue