Merge pull request #117790 from fabaff/set-grype

grype: set version
This commit is contained in:
Sandro 2021-03-27 23:23:37 +01:00 committed by GitHub
commit d1940ceca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ buildGoModule
{ lib
, buildGoModule
, docker
, fetchFromGitHub
, lib
}:
buildGoModule rec {
@ -19,7 +19,11 @@ buildGoModule rec {
propagatedBuildInputs = [ docker ];
# tests require a running Docker instance
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/anchore/grype/internal/version.version=${version}")
'';
# Tests require a running Docker instance
doCheck = false;
meta = with lib; {