Skip to content

Commit cafa380

Browse files
vcluster: 0.19.7 -> 0.23.0 (#388502)
2 parents 433d437 + fb33190 commit cafa380

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

pkgs/by-name/vc/vcluster/package.nix

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
{
2+
lib,
23
buildGoModule,
34
fetchFromGitHub,
45
go,
5-
installShellFiles,
6-
lib,
76
nix-update-script,
87
testers,
98
vcluster,
109
}:
1110

1211
buildGoModule rec {
1312
pname = "vcluster";
14-
version = "0.19.7";
13+
version = "0.23.0";
1514

1615
src = fetchFromGitHub {
1716
owner = "loft-sh";
1817
repo = "vcluster";
19-
rev = "v${version}";
20-
hash = "sha256-sO/kpbzoAy4ohmLZ3Q7+HzoC0NoK2y0qkJ6Ib8TlEns=";
18+
tag = "v${version}";
19+
hash = "sha256-zW3iqVuyuoHxOzCr5dMMO5ULqD/w5huCxmOunO5rmFw=";
2120
};
2221

2322
vendorHash = null;
@@ -31,28 +30,20 @@ buildGoModule rec {
3130
"-X main.goVersion=${lib.getVersion go}"
3231
];
3332

34-
nativeBuildInputs = [ installShellFiles ];
35-
3633
# Test is disabled because e2e tests expect k8s.
3734
doCheck = false;
3835

3936
installPhase = ''
4037
runHook preInstall
41-
mkdir -p $out/bin
42-
install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster
43-
runHook postInstall
44-
'';
4538
46-
postInstall = ''
47-
installShellCompletion --cmd vcluster \
48-
--bash <($out/bin/vcluster completion bash) \
49-
--fish <($out/bin/vcluster completion fish) \
50-
--zsh <($out/bin/vcluster completion zsh)
39+
install -Dm755 $GOPATH/bin/vclusterctl $out/bin/vcluster
40+
41+
runHook postInstall
5142
'';
5243

5344
passthru.tests.version = testers.testVersion {
5445
package = vcluster;
55-
command = "vcluster --version";
46+
command = "HOME=$(mktemp -d) vcluster --version";
5647
};
5748

5849
passthru.updateScript = nix-update-script { };

0 commit comments

Comments
 (0)