vcluster: fix version output

This commit is contained in:
Peter Romfeld 2023-10-17 17:01:39 +08:00
parent 44e948bc21
commit 43decdc877
No known key found for this signature in database
GPG Key ID: 23DAE5C54C17180A

View File

@ -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;