From: elinuxhenrik Date: Fri, 21 Oct 2022 14:06:17 +0000 (+0200) Subject: Fix sonar job after Go version uplift X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=860db9eedef31d5f6892a8264f4693223a7fa766;p=nonrtric.git Fix sonar job after Go version uplift Issue-ID: NONRTRIC-812 Signed-off-by: elinuxhenrik Change-Id: I0593b42c8a7d34d7dc76369f3d552ab34cd8336e --- diff --git a/auth-token-fetch/run-tests-ubuntu.sh b/auth-token-fetch/run-tests-ubuntu.sh index f7de28b3..4235771c 100755 --- a/auth-token-fetch/run-tests-ubuntu.sh +++ b/auth-token-fetch/run-tests-ubuntu.sh @@ -20,17 +20,16 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) set -eux echo "--> $0" -curdir=`pwd` # go installs tools like go-acc to $HOME/go/bin # ubuntu minion path lacks go export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin +export GO111MODULE=on go version cd $SCRIPT_DIR # install the go coverage tool helper -go get -v github.com/ory/go-acc +go install github.com/ory/go-acc -export GO111MODULE=on go get github.com/stretchr/testify/mock@v1.7.0 go mod vendor