Skip to content

Commit 4f8bfc5

Browse files
committed
ipfs: add go1.26 patch
Signed-off-by: Rui Chen <[email protected]>
1 parent 5c7f936 commit 4f8bfc5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Formula/i/ipfs.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ class Ipfs < Formula
2525

2626
depends_on "go" => :build
2727

28+
# bump cockroachdb/swiss for Go 1.26 support, upstream pr ref, https://github.com/ipfs/kubo/pull/11124
29+
patch do
30+
url "https://github.com/ipfs/kubo/commit/ecf967de3a0ac32c0e2c4f2391518b64741376df.patch?full_index=1"
31+
sha256 "2ed099b25219f9fde686461e684ff8fbe26fb8ab66b2e6cb213975e84e82dee1"
32+
end
33+
2834
def install
29-
ldflags = %W[
30-
-s -w
31-
-X github.com/ipfs/kubo.CurrentCommit=#{tap.user}
32-
]
35+
ldflags = "-s -w -X github.com/ipfs/kubo.CurrentCommit=#{tap.user}"
3336
system "go", "build", *std_go_args(ldflags:), "./cmd/ipfs"
3437

3538
generate_completions_from_executable(bin/"ipfs", "commands", "completion")

0 commit comments

Comments
 (0)