diff --git a/Formula/g/grype.rb b/Formula/g/grype.rb index 95530c1b8c760..07200de385333 100644 --- a/Formula/g/grype.rb +++ b/Formula/g/grype.rb @@ -1,30 +1,24 @@ class Grype < Formula desc "Vulnerability scanner for container images and filesystems" homepage "https://github.com/anchore/grype" - url "https://github.com/anchore/grype/archive/refs/tags/v0.85.0.tar.gz" - sha256 "b32d158629a16a03b4300e48369e0727cb664b3c3652477da3eafab5f1d32931" + url "https://github.com/anchore/grype/archive/refs/tags/v0.86.0.tar.gz" + sha256 "44b777eeca3127cfe08007fdeb0a7e7f7b1b268eb224b0993e82eb6ab8fd77f7" license "Apache-2.0" head "https://github.com/anchore/grype.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, arm64_sequoia: "725d4a093a1d21e48282c9005ea3589475b4557307c7b05e744eb6248d8f28dc" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "e7b194076a3e275ae470c84b672f12df7feafc7abf6d2b27a58e488da8cfcc69" - sha256 cellar: :any_skip_relocation, arm64_ventura: "07376330f471a578c1b150dfb4ad9595802ba01199e5cf53bafe2d1744bb21d8" - sha256 cellar: :any_skip_relocation, sonoma: "17e491458c38dc0a51d730b5ef54abaafd522d6c39d3b2079c63595d1b959c5d" - sha256 cellar: :any_skip_relocation, ventura: "43da4ed8d22e9951a57a05923643f4bb2d7db974a78c152540bbe92c2dd258e3" - sha256 cellar: :any_skip_relocation, x86_64_linux: "891ee483a083705842c3587bf11c962e7361ac2cb17bc931c8b36cc15211b76b" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "ea6ea374b9a9f71a707cbe944b3ba11d0ab30f9df1a62c32d59334e4dfc81c56" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "8a450aebe59f6a0f80f51cd9c209e063862401b68744cc8d877d5d174a54e073" + sha256 cellar: :any_skip_relocation, arm64_ventura: "79d7233181f01b565fdfadf0394985f2c91e7d5c1dabf86f7ea638b803de4f57" + sha256 cellar: :any_skip_relocation, sonoma: "0be1990d919a2f875e9c7f141131025e18a81e8077048d6efb321de89fb77d34" + sha256 cellar: :any_skip_relocation, ventura: "c7cf6bc476e0ff65d8bca80e10702ea3d6bc772fd95f413b739058d1833e84f2" + sha256 cellar: :any_skip_relocation, x86_64_linux: "f3ce37696bc7c26418cc1a7165a75d345cd29a20dc2720dcf6c4429eaebc3f8f" end depends_on "go" => :build def install - ldflags = %W[ - -s -w - -X main.version=#{version} - -X main.gitCommit=brew - -X main.buildDate=#{time.iso8601} - ] - + ldflags = "-s -w -X main.version=#{version} -X main.gitCommit=#{tap.user} -X main.buildDate=#{time.iso8601}" system "go", "build", *std_go_args(ldflags:), "./cmd/grype" generate_completions_from_executable(bin/"grype", "completion") @@ -32,7 +26,7 @@ def install test do assert_match "database metadata not found", shell_output("#{bin}/grype db status 2>&1", 1) - assert_match "Update available", shell_output("#{bin}/grype db check", 100) + assert_match "update to the latest db", shell_output("#{bin}/grype db check", 100) assert_match version.to_s, shell_output("#{bin}/grype version 2>&1") end end