mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 05:23:54 +00:00
Merge pull request #242483 from figsoda/kube-score
kube-score: fix version
This commit is contained in:
commit
35948fc9ba
@ -1,6 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, testers
|
||||||
|
, kube-score
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -16,6 +18,20 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorHash = "sha256-UpuwkQHcNg3rohr+AdALakIdHroIySlTnXHgoUdY+EQ=";
|
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; {
|
meta = with lib; {
|
||||||
description = "Kubernetes object analysis with recommendations for improved reliability and security";
|
description = "Kubernetes object analysis with recommendations for improved reliability and security";
|
||||||
homepage = "https://github.com/zegl/kube-score";
|
homepage = "https://github.com/zegl/kube-score";
|
||||||
|
Loading…
Reference in New Issue
Block a user