Merge pull request #234836 from figsoda/bearer

bearer: fix version
This commit is contained in:
Fabian Affolter 2023-05-30 23:16:18 +02:00 committed by GitHub
commit a90f6028cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, bearer
}:
buildGoModule rec {
@ -23,9 +25,15 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
];
# doCheck = false;
passthru.tests = {
version = testers.testVersion {
package = bearer;
command = "bearer version";
};
};
meta = with lib; {
description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";