Upgrade to Go 1.18 and re-vendor dependencies

This commit is contained in:
arthur.barr@uk.ibm.com
2023-01-26 16:40:47 +00:00
committed by Arthur Barr
parent f2842d7eee
commit 5c4422badf
448 changed files with 32933 additions and 20696 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# -*- mode: sh -*-
# © Copyright IBM Corporation 2020
# © Copyright IBM Corporation 2020, 2023
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,10 +35,12 @@ go_minor="${go_version_parts[1]}"
if [[ "$go_major" -eq 1 && "$go_minor" -lt 18 ]]; then
echo "Go version ${go_major}.${go_minor} < 1.18... Pinning credential-helper commit"
git checkout ab7fd12c67d83193072fa91e5648b036547f6323
make pass
cp bin/docker-credential-pass $GOPATH/bin/docker-credential-pass
else
make pass
cp bin/build/docker-credential-pass $GOPATH/bin/docker-credential-pass
fi
make pass
cp bin/docker-credential-pass $GOPATH/bin/docker-credential-pass
mkdir -p /home/travis/.docker
echo '{ "credsStore": "pass" }' | tee /home/travis/.docker/config.json
gpg2 --batch --gen-key <<-EOF