From abea2334c67b0568b3883e8f398a8c938d79a069 Mon Sep 17 00:00:00 2001 From: Papa Bakary Camara Date: Mon, 1 Apr 2024 17:34:27 +0200 Subject: [PATCH] Update Go version to 1.20 --- Dockerfile | 2 +- build.sh | 2 +- go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 51f234d1..2af03182 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM registry.access.redhat.com/ubi9/go-toolset:1.18.9 AS builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder COPY . . diff --git a/build.sh b/build.sh index be88c7d2..367dff48 100755 --- a/build.sh +++ b/build.sh @@ -35,5 +35,5 @@ case "$*" in (*-cover*) build_flags="-v -cover";; esac -go build ${build_flags} -ldflags="-X 'main.BuildTime=$buildtime' -X 'main.BuildVersion=$version' -X 'main.BuildBranch=$branch' -X 'main.BuildCommit=$commit' -X 'main.UtilsVersion=$utils_version' -X 'main.OCPRulesVersion=$ocp_rules_version'" +go build ${build_flags} -buildvcs=false -ldflags="-X 'main.BuildTime=$buildtime' -X 'main.BuildVersion=$version' -X 'main.BuildBranch=$branch' -X 'main.BuildCommit=$commit' -X 'main.UtilsVersion=$utils_version' -X 'main.OCPRulesVersion=$ocp_rules_version'" exit $? diff --git a/go.mod b/go.mod index f7aa817c..61bd84ae 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/RedHatInsights/insights-content-service -go 1.16 +go 1.20 require ( github.com/BurntSushi/toml v1.3.2