osv-detector: 0.6.0 -> 0.11.1
This commit is contained in:
parent
d8b2a92df4
commit
230e21f8b2
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "osv-detector";
|
pname = "osv-detector";
|
||||||
version = "0.6.0";
|
version = "0.11.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "G-Rath";
|
owner = "G-Rath";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw=";
|
hash = "sha256-vIkLrKyDeMfRe/0EPhlKlHAO6XB0/OFY5mTUHeZbcg8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc=";
|
vendorHash = "sha256-Rrosye8foVntoFDvDmyNuXgnEgjzcOXenOKBMZVCRio=";
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-w"
|
"-w"
|
||||||
|
@ -24,6 +24,22 @@ buildGoModule rec {
|
||||||
"-X main.version=${version}"
|
"-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 {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = osv-detector;
|
package = osv-detector;
|
||||||
command = "osv-detector -version";
|
command = "osv-detector -version";
|
||||||
|
|
Loading…
Reference in a new issue