lol

Merge pull request #242973 from aaronjheng/osv-detector

osv-detector: 0.6.0 -> 0.11.1

authored by

Fabian Affolter and committed by
GitHub
fb80f9e5 a3736174

+19 -3
+19 -3
pkgs/tools/security/osv-detector/default.nix
··· 7 7 8 8 buildGoModule rec { 9 9 pname = "osv-detector"; 10 - version = "0.6.0"; 10 + version = "0.11.1"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "G-Rath"; 14 14 repo = pname; 15 15 rev = "v${version}"; 16 - hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw="; 16 + hash = "sha256-vIkLrKyDeMfRe/0EPhlKlHAO6XB0/OFY5mTUHeZbcg8="; 17 17 }; 18 18 19 - vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc="; 19 + vendorHash = "sha256-Rrosye8foVntoFDvDmyNuXgnEgjzcOXenOKBMZVCRio="; 20 20 21 21 ldflags = [ 22 22 "-w" 23 23 "-s" 24 24 "-X main.version=${version}" 25 25 ]; 26 + 27 + checkFlags = 28 + let 29 + skippedTests = [ 30 + # Disable tests requiring network access 31 + "TestRun_ParseAs_CsvFile" 32 + "TestRun_ParseAs_CsvRow" 33 + "TestRun_DBs" 34 + "TestRun_Lockfile" 35 + "TestRun_ParseAsGlobal" 36 + "TestRun_Ignores" 37 + "TestRun_ParseAsSpecific" 38 + "TestRun_Configs" 39 + ]; 40 + in 41 + [ "-skip" "${builtins.concatStringsSep "|" skippedTests}" ]; 26 42 27 43 passthru.tests.version = testers.testVersion { 28 44 package = osv-detector;