Merge pull request #99557 from 06kellyjac/conftest_version

conftest: fix version command
This commit is contained in:
Kevin Cox 2020-11-19 08:49:49 -05:00 committed by GitHub
commit b50e2ece87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,13 +15,25 @@ 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";
longDescription = ''
Conftest helps you write tests against structured configuration data.
Using Conftest you can write tests for your Kubernetes configuration,
Tekton pipeline definitions, Terraform code, Serverless configs or any
other config files.
Conftest uses the Rego language from Open Policy Agent for writing the
assertions. You can read more about Rego in 'How do I write policies' in
the Open Policy Agent documentation.
'';
inherit (src.meta) homepage;
license = licenses.asl20;
maintainers = with maintainers; [ yurrriq ];