Merge pull request #242973 from aaronjheng/osv-detector

osv-detector: 0.6.0 -> 0.11.1
This commit is contained in:
Fabian Affolter 2023-07-24 17:35:48 +02:00 committed by GitHub
commit fb80f9e50d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "osv-detector";
version = "0.6.0";
version = "0.11.1";
src = fetchFromGitHub {
owner = "G-Rath";
repo = pname;
rev = "v${version}";
hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw=";
hash = "sha256-vIkLrKyDeMfRe/0EPhlKlHAO6XB0/OFY5mTUHeZbcg8=";
};
vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc=";
vendorHash = "sha256-Rrosye8foVntoFDvDmyNuXgnEgjzcOXenOKBMZVCRio=";
ldflags = [
"-w"
@ -24,6 +24,22 @@ buildGoModule rec {
"-X main.version=${version}"
];
checkFlags =
let
skippedTests = [
# Disable tests requiring network access
"TestRun_ParseAs_CsvFile"
"TestRun_ParseAs_CsvRow"
"TestRun_DBs"
"TestRun_Lockfile"
"TestRun_ParseAsGlobal"
"TestRun_Ignores"
"TestRun_ParseAsSpecific"
"TestRun_Configs"
];
in
[ "-skip" "${builtins.concatStringsSep "|" skippedTests}" ];
passthru.tests.version = testers.testVersion {
package = osv-detector;
command = "osv-detector -version";