Skip to content

Commit dc74f90

Browse files
authored
Merge pull request #232314 from Homebrew/bump-ethereum-1.16.2
ethereum 1.16.2
2 parents dbfb743 + 3a3487f commit dc74f90

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

Formula/e/ethereum.rb

Lines changed: 20 additions & 11 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

@@ -12,13 +12,13 @@ class Ethereum < Formula
1212
end
1313

1414
bottle do
15-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "13ac7750eb8346e6c4979b4167abe4b88e4c6615f67784c9594c13ec44dcc421"
16-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "332ebe65732fcde8fa528bef05e6bc8603d0c7748bfb1a09c906e59a0d84d4e2"
17-
sha256 cellar: :any_skip_relocation, arm64_ventura: "4d6b751bc5445f3b5f5717a6f9a684c28fa64d1da0ed97b57d6cc8b84fe71029"
18-
sha256 cellar: :any_skip_relocation, sonoma: "442c454605620bc2b2b0469618356c247787feb47e534eb59406f7d8e438d186"
19-
sha256 cellar: :any_skip_relocation, ventura: "ae80fbe50d9762746ba10b098a6aa844373143b34fd433ed36c906e31800c744"
20-
sha256 cellar: :any_skip_relocation, arm64_linux: "3d9bc8814e9b4a56f80993de21355daa836c009470e7b2b136056bdac47328b3"
21-
sha256 cellar: :any_skip_relocation, x86_64_linux: "b351bcb871830ce22904c2ab1e964d777b01404bfcc25ef3136bf5f6f26dd16e"
15+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a098fc0d22c4ae595f297ee9b885f3123560bdd99cf4dc1ffbe17abb08cd5a8e"
16+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "53c6d76e84aadcd97cb04813752afb3f3dd3e7d7d266975ef4a98d033ec60a16"
17+
sha256 cellar: :any_skip_relocation, arm64_ventura: "75fde0ed00a3f21bd10d1241f59eb93e0f95c2a1acae07e13dce93f8dd1113d7"
18+
sha256 cellar: :any_skip_relocation, sonoma: "0ec9b569c9192e01372adac46e2c780e5267e33973a64d437fa1b1cc0773a70b"
19+
sha256 cellar: :any_skip_relocation, ventura: "f9d2c11ff615c0e6c7bea1eabd02d7a095f39def2db6c69a0c6424e081885000"
20+
sha256 cellar: :any_skip_relocation, arm64_linux: "a787e1180747bb20e733c1d07b0bef2f8511d1738a060b07fad02a9f20d6dcfc"
21+
sha256 cellar: :any_skip_relocation, x86_64_linux: "0c8bbb90be0f69983148366b2727b4fc299e638bd830024b36158eb07fbf559f"
2222
end
2323

2424
depends_on "go" => :build
@@ -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)