diff --git a/srcpkgs/grype/patches/fix-go-version.patch b/srcpkgs/grype/patches/fix-go-version.patch new file mode 100644 index 00000000000..746a67a0a6b --- /dev/null +++ b/srcpkgs/grype/patches/fix-go-version.patch @@ -0,0 +1,13 @@ +# Requirement for v1.21.1 has nothing to do with program capabilities, see https://github.com/anchore/grype/pull/1484 +diff --git a/go.mod b/go.mod +index 3d72c07fa9..efdc329286 100644 +--- a/go.mod ++++ b/go.mod +@@ -1,6 +1,6 @@ + module github.com/anchore/grype + +-go 1.21.1 ++go 1.21.0 + + require ( + github.com/CycloneDX/cyclonedx-go v0.7.1 diff --git a/srcpkgs/grype/template b/srcpkgs/grype/template index e5af3b550f6..d40afcc7f1c 100644 --- a/srcpkgs/grype/template +++ b/srcpkgs/grype/template @@ -1,19 +1,17 @@ # Template file for 'grype' pkgname=grype -version=0.66.0 +version=0.69.0 revision=1 build_style=go build_helper=qemu go_import_path="github.com/anchore/grype" go_package="github.com/anchore/grype/cmd/grype" -hostmakedepends="go1.20" short_desc="Vulnerability scanner for container images and filesystems" maintainer="Jan Christian Grünhage " license="Apache-2.0" homepage="https://github.com/anchore/grype" distfiles="https://github.com/anchore/grype/archive/refs/tags/v${version}.tar.gz" -checksum=b0e38671975c0871f1b9a7bacba376f90ecb429973cb4b5b9cf90a3f4e072304 -export GOTOOLCHAIN=go1.20 +checksum=d20e1fb2fdc28af123ce197ceef3ac9dd99327f3a298e7e3e2eb1dd5dd7b43a3 post_install() { grype="${DESTDIR}/usr/bin/grype"