Fix sonar job after Go version uplift 60/9360/2
authorelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 21 Oct 2022 14:33:28 +0000 (16:33 +0200)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 21 Oct 2022 14:44:24 +0000 (16:44 +0200)
Issue-ID: NONRTRIC-812
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Ifaa39788e9837457d296fec67f29de6037aa5bad

icsversion/go.mod
smoversion/build-ransliceassurance-ubuntu.sh
smoversion/go.mod

index 7b1dee0..e861efa 100644 (file)
@@ -1,6 +1,6 @@
 module oransc.org/usecase/oduclosedloop/icsversion
 
-go 1.17
+go 1.19
 
 require (
        github.com/gorilla/mux v1.8.0
index faf3efc..ca04a80 100755 (executable)
@@ -22,13 +22,13 @@ echo "--> build-ransliceassurance-ubuntu.sh"
 # 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 smoversion/
 
 # 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-acc ./... --ignore mocks
index d0e7e7f..3e60cf6 100644 (file)
@@ -1,6 +1,6 @@
 module oransc.org/usecase/oduclosedloop
 
-go 1.17
+go 1.19
 
 require github.com/sirupsen/logrus v1.8.1