Unverified Commit 35948fc9 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #242483 from figsoda/kube-score

kube-score: fix version
parents 94c2ca7e a112a598
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
{ 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";