From 08c2e976cb06dba69a59271b70e5ce4146fb6b4b Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 14 Sep 2023 08:32:40 -0400 Subject: [PATCH 1/2] osv-scanner 1.4.0 osv-scanner: need go for test Signed-off-by: Rui Chen osv-scanner: update test Signed-off-by: Rui Chen --- Formula/o/osv-scanner.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/o/osv-scanner.rb b/Formula/o/osv-scanner.rb index 5786db648359f..4058b06f1ce7a 100644 --- a/Formula/o/osv-scanner.rb +++ b/Formula/o/osv-scanner.rb @@ -1,8 +1,8 @@ class OsvScanner < Formula desc "Vulnerability scanner which uses the OSV database" homepage "https://github.com/google/osv-scanner" - url "https://github.com/google/osv-scanner/archive/refs/tags/v1.3.6.tar.gz" - sha256 "cac90e2683079d2fbe7c5e387d6a5acb65c7d340153df06e91578f9212def50b" + url "https://github.com/google/osv-scanner/archive/refs/tags/v1.4.0.tar.gz" + sha256 "ea306347840c0c24e11061b74d0045f99179d7764e944896b9137fa49352e903" license "Apache-2.0" head "https://github.com/google/osv-scanner.git", branch: "main" @@ -16,7 +16,7 @@ class OsvScanner < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "f7a87a7bbf5008320eb1eccba4dac980ede6fea533724818be03b76dbbd91ac2" end - depends_on "go" => :build + depends_on "go" => [:build, :test] def install system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/osv-scanner" @@ -33,7 +33,7 @@ module my-library scan_output = shell_output("#{bin}/osv-scanner --lockfile #{testpath}/go.mod").strip expected_output = <<~EOS.chomp - Scanned #{testpath}/go.mod file and found 1 packages + Scanned #{testpath}/go.mod file and found 2 packages No vulnerabilities found EOS assert_equal expected_output, scan_output From a21a5973027ef8f50d05cfff70796abe85fab0a6 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:45:10 +0000 Subject: [PATCH 2/2] osv-scanner: update 1.4.0 bottle. --- Formula/o/osv-scanner.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/o/osv-scanner.rb b/Formula/o/osv-scanner.rb index 4058b06f1ce7a..f1a03a7ffeb6b 100644 --- a/Formula/o/osv-scanner.rb +++ b/Formula/o/osv-scanner.rb @@ -7,13 +7,13 @@ class OsvScanner < Formula head "https://github.com/google/osv-scanner.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, arm64_ventura: "792e7ce252cc396cd2138af129f0d76c2c0da557af085a6b4a522a8d257adbf8" - sha256 cellar: :any_skip_relocation, arm64_monterey: "792e7ce252cc396cd2138af129f0d76c2c0da557af085a6b4a522a8d257adbf8" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "792e7ce252cc396cd2138af129f0d76c2c0da557af085a6b4a522a8d257adbf8" - sha256 cellar: :any_skip_relocation, ventura: "7b19d81f08a5f5e3557d038acecd2f5ae4095856ac1e5640bca39da67a63564d" - sha256 cellar: :any_skip_relocation, monterey: "7b19d81f08a5f5e3557d038acecd2f5ae4095856ac1e5640bca39da67a63564d" - sha256 cellar: :any_skip_relocation, big_sur: "7b19d81f08a5f5e3557d038acecd2f5ae4095856ac1e5640bca39da67a63564d" - sha256 cellar: :any_skip_relocation, x86_64_linux: "f7a87a7bbf5008320eb1eccba4dac980ede6fea533724818be03b76dbbd91ac2" + sha256 cellar: :any_skip_relocation, arm64_ventura: "d42c1224892f1b163fd80d9bd55389ed0b18e322ffdcac6bb53838f81a5344c3" + sha256 cellar: :any_skip_relocation, arm64_monterey: "14475967067e7e8bfd6a8cfb0cc9b18accd3b116b419fd3fa8417dfae9a57253" + sha256 cellar: :any_skip_relocation, arm64_big_sur: "1a34e1f2c4e14c160a217e38cd1abd2f62988f5f58d7bd75c1dba5d64a8783a1" + sha256 cellar: :any_skip_relocation, ventura: "5bd223824a92dc5ca16956cbd15c0803c26462321e6593190a5208cd7143a612" + sha256 cellar: :any_skip_relocation, monterey: "6b04439fff4d7bcb7eacbfdc30e527f56beb43845a3de6ba5b15cda1a305c2f0" + sha256 cellar: :any_skip_relocation, big_sur: "6ef93a169e496148593f2dc2b2573acee3c42d3ab40f9b696850cb49d3e53565" + sha256 cellar: :any_skip_relocation, x86_64_linux: "0ff5ecf39a0ffcb55eed6f745ac6fb1bc59307bfd577affaa766563f40410d5e" end depends_on "go" => [:build, :test]