Skip to content

Commit b16a0dc

Browse files
committed
iceberg 0.3.0 (new formula)
1 parent 7efe4f8 commit b16a0dc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Formula/i/iceberg.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
depends_on "go" => :build
9+
10+
def install
11+
# See: https://github.com/apache/iceberg-go/pull/531
12+
inreplace "utils.go", "(unknown version)", version.to_s
13+
14+
system "go", "build", *std_go_args, "./cmd/iceberg"
15+
end
16+
17+
test do
18+
assert_match version.to_s, shell_output("#{bin}/iceberg --version")
19+
output = shell_output("#{bin}/iceberg list 2>&1", 1)
20+
assert_match "unsupported protocol scheme", output
21+
end
22+
end

0 commit comments

Comments
 (0)