mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-09 17:07:33 +00:00
Not all distros have `/bin/bash`, e.g. NixOS. Fixes: #3450 Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
23 lines
449 B
Bash
Executable File
23 lines
449 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -e
|
|
|
|
cidir=$(dirname "$0")
|
|
source "${cidir}/lib.sh"
|
|
|
|
clone_tests_repo
|
|
|
|
new_goroot=/usr/local/go
|
|
|
|
pushd "${tests_repo_dir}"
|
|
# Force overwrite the current version of golang
|
|
[ -z "${GOROOT}" ] || rm -rf "${GOROOT}"
|
|
.ci/install_go.sh -p -f -d "$(dirname ${new_goroot})"
|
|
[ -z "${GOROOT}" ] || sudo ln -sf "${new_goroot}" "${GOROOT}"
|
|
go version
|
|
popd
|