conftest: fix version command

This commit is contained in:
06kellyjac 2020-10-04 14:54:37 +01:00
parent c2fbdeb28a
commit 024f5b30e0

View File

@ -15,10 +15,12 @@ buildGoModule rec {
doCheck = false;
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X github.com/open-policy-agent/conftest/internal/commands.version=${version}"
];
meta = with lib; {
description = "Write tests against structured configuration data";