Fix sonar job after Go version uplift
Issue-ID: NONRTRIC-812
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I0593b42c8a7d34d7dc76369f3d552ab34cd8336e
diff --git a/auth-token-fetch/run-tests-ubuntu.sh b/auth-token-fetch/run-tests-ubuntu.sh
index f7de28b..4235771 100755
--- a/auth-token-fetch/run-tests-ubuntu.sh
+++ b/auth-token-fetch/run-tests-ubuntu.sh
@@ -20,17 +20,16 @@
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