From 76b7b34c1cd7332a089d4d58b726399ea0b036ed Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Wed, 29 Sep 2021 13:21:24 +0100 Subject: [PATCH] scorecard: 2.1.3 -> 2.2.8 --- pkgs/tools/security/scorecard/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/security/scorecard/default.nix b/pkgs/tools/security/scorecard/default.nix index 5d8d9413ae99..d0908c359502 100644 --- a/pkgs/tools/security/scorecard/default.nix +++ b/pkgs/tools/security/scorecard/default.nix @@ -2,23 +2,28 @@ buildGoModule rec { pname = "scorecard"; - version = "2.1.3"; + version = "2.2.8"; src = fetchFromGitHub { owner = "ossf"; repo = pname; rev = "v${version}"; - sha256 = "sha256-lTaFSQ3yyzQGdiKwev38iEpV+ELKg9f1rMYdbqVuiSs="; + sha256 = "sha256-U29NCZFXOhu0xLfDlJ1Q7m8TbAm+C6+ecYFhcI5gg6s="; }; - vendorSha256 = "sha256-eFu954gwoL5z99cJGhSnvliAzwxv3JJxfjmBF+cx7Dg="; - - subPackages = [ "." ]; - - ldflags = [ "-s" "-w" "-X github.com/ossf/scorecard/v2/cmd.gitVersion=v${version}" ]; + vendorSha256 = "sha256-hOATCXjBE0doHnY2BaRKZocQ6SIigL0q4m9eEJGKh6Q="; # Install completions post-install nativeBuildInputs = [ installShellFiles ]; + subPackages = [ "." ]; + + ldflags = [ + "-s" + "-w" + "-X github.com/ossf/scorecard/v2/pkg.gitVersion=v${version}" + "-X github.com/ossf/scorecard/v2/pkg.gitTreeState=clean" + ]; + preCheck = '' # Feed in all but the e2e tests for testing # This is because subPackages above limits what is built to just what we