class Jid < Formula desc "Json incremental digger" homepage "https://github.com/simeji/jid" url "https://github.com/simeji/jid/archive/v0.7.6.tar.gz" sha256 "0912050b3be3760804afaf7ecd6b42bfe79e7160066587fbc0afa5324b03fb48" bottle do cellar :any_skip_relocation rebuild 1 sha256 "0b45fe9c59facbc6b2bbacf4b52927934b09d6e2050ad3a5b5a32434a4bd4751" => :catalina sha256 "2980bf16f4376b7bdfc27e0e6bbe45d9e1f8aca8a143f6f7b6fd939eb6892617" => :mojave sha256 "d429ac5400fd67dcee12e5fe962e84f535858c7ecb3235ee01f8a54dc44e7a9e" => :high_sierra end depends_on "go" => :build def install system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"jid", "cmd/jid/jid.go" prefix.install_metafiles end test do assert_match "jid version v#{version}", shell_output("#{bin}/jid --version") end end