Make project go version more explicit 77/142277/3
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Fri, 17 Oct 2025 11:49:51 +0000 (13:49 +0200)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Fri, 17 Oct 2025 13:10:04 +0000 (15:10 +0200)
- define GO_VERSION variable in build.sh that determines which go version
  is used to build the binaries
- align go version to 1.14 that is defined in all go.mod files [0]
- bump snapshot version to 0.10.3-SNAPSHOT

[0] the mod files all declared 1.13, but 1.14 was effectively used for the build

Issue-ID: MULTICLOUD-1520
Change-Id: I790db4352206ffe6a213472ec8e195b08ae423f4
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
deployments/build.sh
src/clm/go.mod
src/dcm/go.mod
src/k8splugin/go.mod
src/ncm/go.mod
src/orchestrator/go.mod
src/ovnaction/go.mod
src/rsync/go.mod

index be7681c..0ffd77c 100755 (executable)
@@ -13,17 +13,17 @@ set -o pipefail
 
 k8s_path="$(git rev-parse --show-toplevel)"
 
-VERSION="0.10.2-SNAPSHOT"
+VERSION="0.10.3-SNAPSHOT"
+GO_VERSION="1.14"
 export IMAGE_NAME="nexus3.onap.org:10003/onap/multicloud/k8s"
 
 function _compile_src {
     echo "Compiling source code"
-    go version
     ls
     pushd $k8s_path/src/k8splugin/
     pwd
     # mount directory and build in container (thus not relying on the state of the runner)
-    docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp nexus3.onap.org:10001/golang:1.14.1 make
+    docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp nexus3.onap.org:10001/golang:${GO_VERSION} make
     popd
 }
 
index cc6b008..3b44ec5 100644 (file)
@@ -35,4 +35,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9
 )
 
-go 1.13
+go 1.14
index 2bfbe83..28fe4c6 100644 (file)
@@ -43,4 +43,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9
 )
 
-go 1.13
+go 1.14
index ca60b9a..8512339 100644 (file)
@@ -74,4 +74,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.19.4
 )
 
-go 1.13
+go 1.14
index 86032ff..c8c5a63 100644 (file)
@@ -40,4 +40,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9
 )
 
-go 1.13
+go 1.14
index f7d62f0..22c7f45 100644 (file)
@@ -54,4 +54,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9
 )
 
-go 1.13
+go 1.14
index 7666e6d..60b00f7 100644 (file)
@@ -43,4 +43,4 @@ replace (
        k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9
 )
 
-go 1.13
+go 1.14
index 49c035d..4cb43b8 100644 (file)
@@ -1,6 +1,6 @@
 module github.com/onap/multicloud-k8s/src/rsync
 
-go 1.13
+go 1.14
 
 require (
        github.com/ghodss/yaml v1.0.0