tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tektoncd-cli: 0.19.1 -> 0.20.0
06kellyjac
4 years ago
4d9f1ee6
b466d6c7
+5
-8
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
cluster
tektoncd-cli
default.nix
+5
-8
pkgs/applications/networking/cluster/tektoncd-cli/default.nix
···
2
3
buildGoModule rec {
4
pname = "tektoncd-cli";
5
-
version = "0.19.1";
6
7
src = fetchFromGitHub {
8
owner = "tektoncd";
9
repo = "cli";
10
rev = "v${version}";
11
-
sha256 = "sha256-duJSTk5LmJWbaVYybZZHWDe8E/ZqZLCCsdPIiH5d/G4=";
12
};
13
14
vendorSha256 = null;
15
16
-
preBuild = ''
17
-
buildFlagsArray+=("-ldflags" "-s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}")
18
-
'';
19
20
nativeBuildInputs = [ installShellFiles ];
21
···
27
# Some tests try to write to the home dir
28
export HOME="$TMPDIR"
29
# Change the golden files to match our desired version
30
-
sed -i "s/dev/${version}/" pkg/cmd/version/testdata/TestGetVersions-*.golden
31
'';
32
33
postInstall = ''
···
43
installCheckPhase = ''
44
runHook preInstallCheck
45
$out/bin/tkn --help
46
-
# New tkn version functionality outputs empty https://github.com/tektoncd/cli/issues/1389
47
-
# $out/bin/tkn version | grep "Client version: ${version}"
48
runHook postInstallCheck
49
'';
50
···
2
3
buildGoModule rec {
4
pname = "tektoncd-cli";
5
+
version = "0.20.0";
6
7
src = fetchFromGitHub {
8
owner = "tektoncd";
9
repo = "cli";
10
rev = "v${version}";
11
+
sha256 = "sha256-aVR1xNmL6M/m+1znt70vrCtuABCqDz0sDp8mDFI2uIg=";
12
};
13
14
vendorSha256 = null;
15
16
+
ldflags = [ "-s" "-w" "-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}" ];
0
0
17
18
nativeBuildInputs = [ installShellFiles ];
19
···
25
# Some tests try to write to the home dir
26
export HOME="$TMPDIR"
27
# Change the golden files to match our desired version
28
+
sed -i "s/dev/${version}/" pkg/cmd/version/testdata/{TestGetVersions-,TestGetComponentVersions/}*.golden
29
'';
30
31
postInstall = ''
···
41
installCheckPhase = ''
42
runHook preInstallCheck
43
$out/bin/tkn --help
44
+
$out/bin/tkn version | grep "Client version: ${version}"
0
45
runHook postInstallCheck
46
'';
47