Merge pull request #254297 from maxbrunet/fix/trivy/version

trivy: fix version ldflag
This commit is contained in:
Fabian Affolter
2023-09-18 11:12:31 +02:00
committed by GitHub
+2 -2
View File
@@ -26,7 +26,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X=main.version=v${version}"
"-X=github.com/aquasecurity/trivy/pkg/version.ver=v${version}"
];
# Tests require network access
@@ -37,7 +37,7 @@ buildGoModule rec {
passthru.tests.version = testers.testVersion {
package = trivy;
command = "trivy --version";
version = "v${version}";
version = "Version: v${version}";
};
meta = with lib; {