Merge pull request #120890 from 06kellyjac/tektoncd-cli

tektoncd-cli: 0.17.2 -> 0.18.0
This commit is contained in:
Luke Granger-Brown 2021-05-03 10:14:22 +01:00 committed by GitHub
commit d6fc78b4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "tektoncd-cli"; pname = "tektoncd-cli";
version = "0.17.2"; version = "0.18.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tektoncd"; owner = "tektoncd";
repo = "cli"; repo = "cli";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-7VG9OFt1yVt4st8EM1aiRqLCHwjSqib28GoamoJHHnM="; sha256 = "sha256-vZxpfVMUl1EZwCuLlwmSKWrz86aTjWYlAIwO4b9ACqk=";
}; };
vendorSha256 = null; vendorSha256 = null;
@ -24,6 +24,8 @@ buildGoModule rec {
excludedPackages = "\\(third_party\\|cmd/docs\\)"; excludedPackages = "\\(third_party\\|cmd/docs\\)";
preCheck = '' preCheck = ''
# Some tests try to write to the home dir
export HOME="$TMPDIR"
# Change the golden files to match our desired version # Change the golden files to match our desired version
sed -i "s/dev/${version}/" pkg/cmd/version/testdata/TestGetVersions-*.golden sed -i "s/dev/${version}/" pkg/cmd/version/testdata/TestGetVersions-*.golden
''; '';