Merge pull request #261607 from peterromfeldhk/peter-vcluster-version
vcluster: fix version output
This commit is contained in:
commit
8fbb1f3325
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue