From 8ddf313977dba7f8912a91fc2cae4cebabbd9bc6 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 25 Jun 2023 11:36:22 -0400 Subject: [PATCH] karmor: fix version --- pkgs/applications/networking/cluster/karmor/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/cluster/karmor/default.nix b/pkgs/applications/networking/cluster/karmor/default.nix index 2ea584f7dee9..3a673cb0a16a 100644 --- a/pkgs/applications/networking/cluster/karmor/default.nix +++ b/pkgs/applications/networking/cluster/karmor/default.nix @@ -15,6 +15,13 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; + ldflags = [ + "-s" + "-w" + "-X=github.com/kubearmor/kubearmor-client/selfupdate.BuildDate=1970-01-01" + "-X=github.com/kubearmor/kubearmor-client/selfupdate.GitSummary=${version}" + ]; + # integration tests require network access doCheck = false;