Skip to content

Commit 9b7a79b

Browse files
BrewTestBotdaeho-ro
authored andcommitted
ethereum 1.16.2
1 parent 4cefec9 commit 9b7a79b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Formula/e/ethereum.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Ethereum < Formula
22
desc "Official Go implementation of the Ethereum protocol"
33
homepage "https://geth.ethereum.org/"
4-
url "https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.15.11.tar.gz"
5-
sha256 "d9f584c7d77e170320c1b374cc4528dc5987f5a88d2ea79f700a254597788e1b"
4+
url "https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.16.2.tar.gz"
5+
sha256 "ab0650551a6f1d5443c6c857338f834c6adb5c96b1b2e4851e4b8cb516758ea2"
66
license "LGPL-3.0-or-later"
77
head "https://github.com/ethereum/go-ethereum.git", branch: "master"
88

@@ -31,8 +31,17 @@ def install
3131
# See discussion in https://github.com/Homebrew/brew/issues/14763.
3232
ENV.O0 if OS.linux?
3333

34-
system "make", "all"
35-
bin.install buildpath.glob("build/bin/*")
34+
ldflags = %W[
35+
-s -w
36+
-X github.com/ethereum/go-ethereum/internal/build/env.GitCommitFlag=#{tap.user}
37+
-X github.com/ethereum/go-ethereum/internal/build/env.GitTagFlag=v#{version}
38+
-X github.com/ethereum/go-ethereum/internal/build/env.BuildnumFlag=#{tap.user}
39+
]
40+
(buildpath/"cmd").each_child(false) do |cmd|
41+
next if cmd.basename.to_s == "utils"
42+
43+
system "go", "build", *std_go_args(ldflags:, output: bin/cmd), "./cmd/#{cmd}"
44+
end
3645
end
3746

3847
test do

0 commit comments

Comments
 (0)