From: Fiete Ostkamp Date: Fri, 17 Oct 2025 11:49:51 +0000 (+0200) Subject: Make project go version more explicit X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=4c7f8e989cd6364dc005144d6125361fd883cdbe;p=multicloud%2Fk8s.git Make project go version more explicit - 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 --- diff --git a/deployments/build.sh b/deployments/build.sh index be7681c8..0ffd77cc 100755 --- a/deployments/build.sh +++ b/deployments/build.sh @@ -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 } diff --git a/src/clm/go.mod b/src/clm/go.mod index cc6b0082..3b44ec5e 100644 --- a/src/clm/go.mod +++ b/src/clm/go.mod @@ -35,4 +35,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9 ) -go 1.13 +go 1.14 diff --git a/src/dcm/go.mod b/src/dcm/go.mod index 2bfbe832..28fe4c65 100644 --- a/src/dcm/go.mod +++ b/src/dcm/go.mod @@ -43,4 +43,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9 ) -go 1.13 +go 1.14 diff --git a/src/k8splugin/go.mod b/src/k8splugin/go.mod index ca60b9ac..8512339a 100644 --- a/src/k8splugin/go.mod +++ b/src/k8splugin/go.mod @@ -74,4 +74,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.19.4 ) -go 1.13 +go 1.14 diff --git a/src/ncm/go.mod b/src/ncm/go.mod index 86032ffb..c8c5a63a 100644 --- a/src/ncm/go.mod +++ b/src/ncm/go.mod @@ -40,4 +40,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9 ) -go 1.13 +go 1.14 diff --git a/src/orchestrator/go.mod b/src/orchestrator/go.mod index f7d62f07..22c7f45c 100644 --- a/src/orchestrator/go.mod +++ b/src/orchestrator/go.mod @@ -54,4 +54,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9 ) -go 1.13 +go 1.14 diff --git a/src/ovnaction/go.mod b/src/ovnaction/go.mod index 7666e6d5..60b00f73 100644 --- a/src/ovnaction/go.mod +++ b/src/ovnaction/go.mod @@ -43,4 +43,4 @@ replace ( k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.16.9 ) -go 1.13 +go 1.14 diff --git a/src/rsync/go.mod b/src/rsync/go.mod index 49c035de..4cb43b8b 100644 --- a/src/rsync/go.mod +++ b/src/rsync/go.mod @@ -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