Merge pull request #261607 from peterromfeldhk/peter-vcluster-version

vcluster: fix version output
This commit is contained in:
Weijia Wang
2023-10-18 12:33:18 +02:00
committed by GitHub
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
{ lib, go, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "vcluster";
@@ -17,7 +17,11 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
ldflags = [
"-s" "-w"
"-X main.version=${version}"
"-X main.goVersion=${lib.getVersion go}"
];
# Test is disabled because e2e tests expect k8s.
doCheck = false;