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
2
3
3
buildGoModule rec {
4
4
pname = "tektoncd-cli";
5
5
-
version = "0.19.1";
5
5
+
version = "0.20.0";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "tektoncd";
9
9
repo = "cli";
10
10
rev = "v${version}";
11
11
-
sha256 = "sha256-duJSTk5LmJWbaVYybZZHWDe8E/ZqZLCCsdPIiH5d/G4=";
11
11
+
sha256 = "sha256-aVR1xNmL6M/m+1znt70vrCtuABCqDz0sDp8mDFI2uIg=";
12
12
};
13
13
14
14
vendorSha256 = null;
15
15
16
16
-
preBuild = ''
17
17
-
buildFlagsArray+=("-ldflags" "-s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}")
18
18
-
'';
16
16
+
ldflags = [ "-s" "-w" "-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}" ];
19
17
20
18
nativeBuildInputs = [ installShellFiles ];
21
19
···
27
25
# Some tests try to write to the home dir
28
26
export HOME="$TMPDIR"
29
27
# Change the golden files to match our desired version
30
30
-
sed -i "s/dev/${version}/" pkg/cmd/version/testdata/TestGetVersions-*.golden
28
28
+
sed -i "s/dev/${version}/" pkg/cmd/version/testdata/{TestGetVersions-,TestGetComponentVersions/}*.golden
31
29
'';
32
30
33
31
postInstall = ''
···
43
41
installCheckPhase = ''
44
42
runHook preInstallCheck
45
43
$out/bin/tkn --help
46
46
-
# New tkn version functionality outputs empty https://github.com/tektoncd/cli/issues/1389
47
47
-
# $out/bin/tkn version | grep "Client version: ${version}"
44
44
+
$out/bin/tkn version | grep "Client version: ${version}"
48
45
runHook postInstallCheck
49
46
'';
50
47