Fabian Affolter 2023-01-08 12:24:33 +01:00
parent 2a19c135fc
commit 6ae53e4cca

View file

@ -8,13 +8,13 @@
buildGoModule rec { buildGoModule rec {
pname = "grype"; pname = "grype";
version = "0.54.0"; version = "0.55.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "anchore"; owner = "anchore";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-/c7WP9m+8AULjmchpZmcTcnXG0K8gGxjseXS/QJXj+k="; hash = "sha256-Y72h1YCf42RinGw2mKZb8Bz8ip+LUW377xwJht67Q1s=";
# 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-+WMaQaBf4uMCCQTyycHlkYeKbRtk6oAlqbHBYBqh64M="; vendorHash = "sha256-xzBOZyzwxVFTFgtmu7DLBpdkV9bwzJ9RETkdyV2HtQo=";
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles
@ -70,14 +70,6 @@ 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 grype/presenter/cyclonedx/presenter_test.go \
--replace "TestCycloneDxPresenterImage" "SkipCycloneDxPresenterImage"
substituteInPlace grype/presenter/cyclonedxvex/presenter_test.go \
--replace "TestCycloneDxPresenterImage" "SkipCycloneDxPresenterImage"
substituteInPlace grype/presenter/sarif/presenter_test.go \
--replace "Test_imageToSarifReport" "Skip_imageToSarifReport" \
--replace "TestSarifPresenterImage" "SkipSarifPresenterImage"
# 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"