mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
grype: 0.69.1 -> 0.73.4
This commit is contained in:
parent
d71187cf33
commit
77b7367564
@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "grype";
|
pname = "grype";
|
||||||
version = "0.69.1";
|
version = "0.73.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "anchore";
|
owner = "anchore";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-AXw2mtN4FC6EKWN8dObrU04+WSHDWLY19FSWqQlkq/Q=";
|
hash = "sha256-cYhgLMKj8fo49zr+NC7SARiyybCnqXf+DgB+6IkwkAw=";
|
||||||
# populate values that require us to use git. By doing this in postFetch we
|
# populate values that require us to use git. By doing this in postFetch we
|
||||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
@ -28,7 +28,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
|
|
||||||
vendorHash = "sha256-iitWThvWVfeJMLcJLgmFnVguFVF4DejObZPZ3qB5cY0=";
|
vendorHash = "sha256-Zx8gJZVkobKjrGysrqYd6Hv2bGqEgOQ+EGSKDvOM33M=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
@ -73,6 +73,8 @@ buildGoModule rec {
|
|||||||
--replace "TestCmd" "SkipCmd"
|
--replace "TestCmd" "SkipCmd"
|
||||||
substituteInPlace grype/pkg/provider_test.go \
|
substituteInPlace grype/pkg/provider_test.go \
|
||||||
--replace "TestSyftLocationExcludes" "SkipSyftLocationExcludes"
|
--replace "TestSyftLocationExcludes" "SkipSyftLocationExcludes"
|
||||||
|
substituteInPlace test/cli/cmd_test.go \
|
||||||
|
--replace "Test_descriptorNameAndVersionSet" "Skip_descriptorNameAndVersionSet"
|
||||||
# remove tests that depend on git
|
# remove tests that depend on git
|
||||||
substituteInPlace test/cli/db_validations_test.go \
|
substituteInPlace test/cli/db_validations_test.go \
|
||||||
--replace "TestDBValidations" "SkipDBValidations"
|
--replace "TestDBValidations" "SkipDBValidations"
|
||||||
@ -83,6 +85,8 @@ buildGoModule rec {
|
|||||||
--replace "TestSBOMInput_AsArgument" "SkipSBOMInput_AsArgument"
|
--replace "TestSBOMInput_AsArgument" "SkipSBOMInput_AsArgument"
|
||||||
substituteInPlace test/cli/subprocess_test.go \
|
substituteInPlace test/cli/subprocess_test.go \
|
||||||
--replace "TestSubprocessStdin" "SkipSubprocessStdin"
|
--replace "TestSubprocessStdin" "SkipSubprocessStdin"
|
||||||
|
substituteInPlace grype/internal/packagemetadata/names_test.go \
|
||||||
|
--replace "TestAllNames" "SkipAllNames"
|
||||||
|
|
||||||
# segfault
|
# segfault
|
||||||
rm grype/db/v5/namespace/cpe/namespace_test.go
|
rm grype/db/v5/namespace/cpe/namespace_test.go
|
||||||
|
Loading…
Reference in New Issue
Block a user