From 020461e5239d8a67cd075631ea1c8c6705761b67 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Mon, 31 Jul 2023 11:57:20 +0530 Subject: [PATCH] build: Bump minimum Go version to 1.19 Signed-off-by: Anoop C S --- .github/workflows/main.yml | 8 ++++---- Dockerfile | 2 +- docs/CONTRIBUTING.md | 2 +- docs/developers-notes.md | 2 +- go.mod | 2 +- tests/centosci/sink-clustered-deployment.sh | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75cc9bd3..7a86ede4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.19" - uses: actions/checkout@v3 - name: Build run: make @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.19" - uses: actions/checkout@v3 - name: Install revive run: go install github.com/mgechev/revive@latest @@ -46,7 +46,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.19" - uses: actions/checkout@v3 - name: run the tests run: make test @@ -100,7 +100,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.18" + go-version: "1.19" - name: Install k3d run: curl -L --silent --fail "https://raw.githubusercontent.com/rancher/k3d/main/install.sh" | bash # The TAG env var can interfere with the k3d install script. diff --git a/Dockerfile b/Dockerfile index 737e3de9..11115088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM docker.io/golang:1.18 as builder +FROM docker.io/golang:1.19 as builder ARG GIT_VERSION="(unset)" ARG COMMIT_ID="(unset)" ARG ARCH="" diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 80dcd1ca..64f47d9f 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -17,7 +17,7 @@ resources. Development effort takes place using Linux environment and requires at minimum: -1. [Go 1.18](https://golang.org/dl/) installed +1. [Go 1.19](https://golang.org/dl/) installed 2. [GitHub](https://github.com/) account 3. Development tools: git, make, and podman or docker 4. Testing: [minikube](https://minikube.sigs.k8s.io) diff --git a/docs/developers-notes.md b/docs/developers-notes.md index f2abb24c..c038a99c 100644 --- a/docs/developers-notes.md +++ b/docs/developers-notes.md @@ -4,7 +4,7 @@ ## Build from source The top-level [Makefile](../Makefile) is the entry point for various build -commands. The minimal required Go version is 1.18. A developer can verify the +commands. The minimal required Go version is 1.19. A developer can verify the build environment by running: ```bash diff --git a/go.mod b/go.mod index 66684a4f..9966b3f1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/samba-in-kubernetes/samba-operator -go 1.18 +go 1.19 require ( github.com/go-logr/logr v1.2.3 diff --git a/tests/centosci/sink-clustered-deployment.sh b/tests/centosci/sink-clustered-deployment.sh index c5a2249f..37c9b0f0 100755 --- a/tests/centosci/sink-clustered-deployment.sh +++ b/tests/centosci/sink-clustered-deployment.sh @@ -13,7 +13,7 @@ setup_minikube deploy_rook -image_pull "${CI_IMG_REGISTRY}" "docker.io" "golang:1.18" +image_pull "${CI_IMG_REGISTRY}" "docker.io" "golang:1.19" # Build and push operator image to local CI registry IMG="${CI_IMG_OP}" make image-build