Skip to content

Commit 4626ba5

Browse files
authored
Merge pull request #162414 from chenrui333/github-release-go-mod
github-release: migrate to go modules build
2 parents 699df34 + bf94c2d commit 4626ba5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/g/github-release.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ class GithubRelease < Formula
2323

2424
depends_on "go" => :build
2525

26+
# upstream PR ref, https://github.com/github-release/github-release/pull/129
27+
patch do
28+
url "https://github.com/github-release/github-release/commit/074f4e8e1688642f50a7a3cc92b5777c7b484139.patch?full_index=1"
29+
sha256 "4d7d4ae04642ab48b16ab6e31b0e0f989cc7750dc29123dc8164c629b9523c2e"
30+
end
31+
2632
def install
27-
ENV["GOPATH"] = buildpath
28-
ENV["GO111MODULE"] = "auto"
29-
system "make"
30-
bin.install "github-release"
33+
system "go", "build", *std_go_args(ldflags: "-s -w")
3134
end
3235

3336
test do

0 commit comments

Comments
 (0)