Skip to content

Commit f0c0425

Browse files
alebcaychenrui333
authored andcommitted
lazygit: use std_go_args
1 parent e354136 commit f0c0425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/lazygit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Lazygit < Formula
1919
depends_on "go" => :build
2020

2121
def install
22-
system "go", "build", "-mod=vendor", "-o", bin/"lazygit",
23-
"-ldflags", "-X main.version=#{version} -X main.buildSource=homebrew"
22+
ldflags = "-X main.version=#{version} -X main.buildSource=homebrew"
23+
system "go", "build", "-mod=vendor", *std_go_args(ldflags: ldflags)
2424
end
2525

2626
# lazygit is a terminal GUI, but it can be run in 'client mode' for example to write to git's todo file

0 commit comments

Comments
 (0)