Merge pull request #242483 from figsoda/kube-score

kube-score: fix version
This commit is contained in:
Weijia Wang 2023-07-09 23:06:43 +03:00 committed by GitHub
commit 35948fc9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, kube-score
}:
buildGoModule rec {
@ -16,6 +18,20 @@ buildGoModule rec {
vendorHash = "sha256-UpuwkQHcNg3rohr+AdALakIdHroIySlTnXHgoUdY+EQ=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
passthru.tests = {
version = testers.testVersion {
package = kube-score;
command = "kube-score version";
};
};
meta = with lib; {
description = "Kubernetes object analysis with recommendations for improved reliability and security";
homepage = "https://github.com/zegl/kube-score";