From 860db9eedef31d5f6892a8264f4693223a7fa766 Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Fri, 21 Oct 2022 16:06:17 +0200 Subject: [PATCH] Fix sonar job after Go version uplift Issue-ID: NONRTRIC-812 Signed-off-by: elinuxhenrik Change-Id: I0593b42c8a7d34d7dc76369f3d552ab34cd8336e --- auth-token-fetch/run-tests-ubuntu.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.16.6