diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-10 15:08:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 15:08:03 +0200 |
commit | 81e722d08617ee19235bf57de6d86124e6b4574a (patch) | |
tree | c0465b57f84ebf23c640fe3ef216b72272da79b4 /contrib/cirrus/lib.sh | |
parent | cef566306c9132c610cdd028f7e5035433c12798 (diff) | |
parent | 1ef8637ae31fa63f98e5edd32e01b090fd66c832 (diff) | |
download | podman-81e722d08617ee19235bf57de6d86124e6b4574a.tar.gz podman-81e722d08617ee19235bf57de6d86124e6b4574a.tar.bz2 podman-81e722d08617ee19235bf57de6d86124e6b4574a.zip |
Merge pull request #3106 from cevich/cirrus_release
Cirrus: Automate releasing of tested binaries
Diffstat (limited to 'contrib/cirrus/lib.sh')
-rw-r--r-- | contrib/cirrus/lib.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index e19763bfb..ea0f9e326 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -18,9 +18,8 @@ if type -P go &> /dev/null then # required for go 1.12+ export GOCACHE="${GOCACHE:-$HOME/.cache/go-build}" - eval "$(go env)" - # required by make and other tools - export $(go env | cut -d '=' -f 1) + # called processes like `make` and other tools need these vars. + eval "export $(go env)" # Ensure compiled tooling is reachable export PATH="$PATH:$GOPATH/bin" @@ -165,6 +164,11 @@ die() { exit ${1:-1} } +warn() { + echo ">>>>> ${2:-WARNING (but no message given!) in ${FUNCNAME[1]}()}" > /dev/stderr + echo ${1:-1} > /dev/stdout +} + bad_os_id_ver() { echo "Unknown/Unsupported distro. $OS_RELEASE_ID and/or version $OS_RELEASE_VER for $(basename $0)" exit 42 |