Fix sonar job after Go version uplift 56/9356/1
authorelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 21 Oct 2022 14:06:17 +0000 (16:06 +0200)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 21 Oct 2022 14:06:20 +0000 (16:06 +0200)
Issue-ID: NONRTRIC-812
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I0593b42c8a7d34d7dc76369f3d552ab34cd8336e

auth-token-fetch/run-tests-ubuntu.sh

index f7de28b..4235771 100755 (executable)
@@ -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