File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments