Unverified Commit 8fbb1f33 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

vcluster: fix version output
parents f1bae1e6 43decdc8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{ 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;