34 lines
1.9 KiB
Ruby
34 lines
1.9 KiB
Ruby
class ContainerDiff < Formula
|
|
desc "Diff your Docker containers"
|
|
homepage "https://github.com/GoogleContainerTools/container-diff"
|
|
url "https://github.com/GoogleContainerTools/container-diff/archive/v0.17.0.tar.gz"
|
|
sha256 "b1d909c4eff0e3355ba45516daddef0adfa4cdcd0c8b41863060c66f524353f9"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "0701c2558a655c78d45640ef027c31d09a2f173fdcfffebfb8829a569d0d1200"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "9df5a58421447c581cf17ec7b7ccd2f131156004bf9b7adb87f4fe6a6fd54bec"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e41a2030963aa17e984e444844f065e21f3db400500602dd9fb70c15fab6efd3"
|
|
sha256 cellar: :any_skip_relocation, ventura: "937a84ed7417bff521a353527870112b88c88525a59619b093c5dc49ab56597c"
|
|
sha256 cellar: :any_skip_relocation, monterey: "0eea29192581a1dea12c189c7e8fc9a2a339cc721c12306676fffcb330f34bce"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "339c0ec5e9dbe0b5255a3ca87c316cc159741bb7b6ae43189a9d20af8fb5a63e"
|
|
sha256 cellar: :any_skip_relocation, catalina: "7b09d72b8cea67e283520a37ffb5082b7070443a5da1f78584270488ea6f8f74"
|
|
sha256 cellar: :any_skip_relocation, mojave: "4c9f7078b38379711d7eb961e9ed670a13a3240ce0c1d99d910d8313daa412bc"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "0bd5bb07cb846d439d1e88afbdc6a9e88301f155b470465d1e8a0c8c015032d3"
|
|
end
|
|
|
|
# Bump to 1.18 on the next release, if possible.
|
|
depends_on "go@1.17" => :build
|
|
|
|
def install
|
|
pkg = "github.com/GoogleContainerTools/container-diff/version"
|
|
system "go", "build", *std_go_args(ldflags: "-s -w -X #{pkg}.version=#{version}")
|
|
end
|
|
|
|
test do
|
|
image = "daemon://gcr.io/google-appengine/golang:2018-01-04_15_24"
|
|
output = shell_output("#{bin}/container-diff analyze #{image} 2>&1", 1)
|
|
assert_match "error retrieving image daemon://gcr.io/google-appengine/golang:2018-01-04_15_24", output
|
|
end
|
|
end
|