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
commit 8fbb1f3325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;