Skip to content

Commit 6333723

Browse files
authored
Merge pull request #233260 from ankane/iceberg
iceberg 0.3.0 (new formula)
2 parents fa192e8 + 2d9f8f4 commit 6333723

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Formula/i/iceberg.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Iceberg < Formula
2+
desc "Command-line interface for Apache Iceberg"
3+
homepage "https://go.iceberg.apache.org/cli.html"
4+
url "https://github.com/apache/iceberg-go/archive/refs/tags/v0.3.0.tar.gz"
5+
sha256 "3bf2bb338676161db4896b1748879cc211ea12d9ad9ea5dd845dde12af271249"
6+
license "Apache-2.0"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b362e2d7e85e08fa6b8f902d77fc519fc096a08d68d1c8ee68b08993c65e9996"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "b362e2d7e85e08fa6b8f902d77fc519fc096a08d68d1c8ee68b08993c65e9996"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "b362e2d7e85e08fa6b8f902d77fc519fc096a08d68d1c8ee68b08993c65e9996"
12+
sha256 cellar: :any_skip_relocation, sonoma: "410dfe015077c35d134318e84a478cb8836be97000994862e0efba5ecf639d5d"
13+
sha256 cellar: :any_skip_relocation, ventura: "410dfe015077c35d134318e84a478cb8836be97000994862e0efba5ecf639d5d"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "d9a671a01b1a587f7f0eb495d1477f3cf6082a3bd6012a0f23c2de054a04d3b4"
15+
end
16+
17+
depends_on "go" => :build
18+
19+
def install
20+
# See: https://github.com/apache/iceberg-go/pull/531
21+
inreplace "utils.go", "(unknown version)", version.to_s
22+
23+
system "go", "build", *std_go_args, "./cmd/iceberg"
24+
end
25+
26+
test do
27+
assert_match version.to_s, shell_output("#{bin}/iceberg --version")
28+
output = shell_output("#{bin}/iceberg list 2>&1", 1)
29+
assert_match "unsupported protocol scheme", output
30+
end
31+
end

0 commit comments

Comments
 (0)