From 6d9490312c26b6d36a0b1d7c58ccaf34d9a38a65 Mon Sep 17 00:00:00 2001 From: Taras Drozdovskyi Date: Sat, 2 Nov 2024 11:27:59 +0200 Subject: [PATCH] feat: Update go version Signed-off-by: Taras Drozdovskyi --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- .github/workflows/build.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/go-fuzz-test.yml | 2 +- .github/workflows/lint-vet-gofmt-staticcheck-analysis.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/test-suite.yml | 2 +- configs/defdockerfiles/ubuntu | 2 +- configs/defdockerfiles/ubuntu_multistage | 2 +- docs/platforms/x86_64_linux/x86_64_linux.md | 2 +- go.mod | 2 +- third_party/zeroconf/go.mod | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f20aa5b8..1b79a74a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -32,8 +32,8 @@ Example **Test Configuration**: * OS type & version: Ubuntu 20.04 * Hardware: x86-64 (e.g., x86, x86-64, arm, arm64) -* Toolchain: Docker v20.10 & Go v1.19 -* Edge Orchestration Release: v1.1.x +* Toolchain: Docker v20.10 & Go v1.23 +* Edge Orchestration Release: v1.2.x # Checklist: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d242546..bc8db3e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Install Qemu if: ${{ matrix.arch != 'x86_64c' && matrix.arch != 'x86_64a' && matrix.arch != 'x86_64n'}} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5ab99cdf..3d2e58b1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a diff --git a/.github/workflows/go-fuzz-test.yml b/.github/workflows/go-fuzz-test.yml index f2caf34a..9d83189e 100644 --- a/.github/workflows/go-fuzz-test.yml +++ b/.github/workflows/go-fuzz-test.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Fuzz test run: | diff --git a/.github/workflows/lint-vet-gofmt-staticcheck-analysis.yml b/.github/workflows/lint-vet-gofmt-staticcheck-analysis.yml index e3b82aaa..aa23cec2 100644 --- a/.github/workflows/lint-vet-gofmt-staticcheck-analysis.yml +++ b/.github/workflows/lint-vet-gofmt-staticcheck-analysis.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Set env vars (golint) run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 916c7cca..f6de78a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Set up QEMU uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 48c9a795..f95f8c40 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: - go-version: '1.19' + go-version: '1.23' - name: Set env vars (gocov) run: | diff --git a/configs/defdockerfiles/ubuntu b/configs/defdockerfiles/ubuntu index dd65da34..97a86e5f 100644 --- a/configs/defdockerfiles/ubuntu +++ b/configs/defdockerfiles/ubuntu @@ -1,7 +1,7 @@ # Docker image for "edge-orchestration" ### ubuntu:20.04 ARG PLATFORM -FROM $PLATFORM/ubuntu:20.04 +FROM $PLATFORM/ubuntu:21.04 # environment variables ENV TARGET_DIR=/edge-orchestration diff --git a/configs/defdockerfiles/ubuntu_multistage b/configs/defdockerfiles/ubuntu_multistage index 52210930..e46d62ea 100644 --- a/configs/defdockerfiles/ubuntu_multistage +++ b/configs/defdockerfiles/ubuntu_multistage @@ -3,7 +3,7 @@ FROM --platform=$TARGETPLATFORM ubuntu:20.04 AS builder # environment variables ARG TARGETPLATFORM -ENV GOVERSION=1.19.1 +ENV GOVERSION=1.23.2 ENV GOPATH=/usr/local/go ENV TARGET_DIR=/edge-orchestration diff --git a/docs/platforms/x86_64_linux/x86_64_linux.md b/docs/platforms/x86_64_linux/x86_64_linux.md index e28bb4ab..62678e33 100644 --- a/docs/platforms/x86_64_linux/x86_64_linux.md +++ b/docs/platforms/x86_64_linux/x86_64_linux.md @@ -37,7 +37,7 @@ Please see the below [How to work](#how-to-work) to know how to run Edge Orchest `$ sudo usermod -aG docker $USER` - go compiler - - Version: 1.19 (or above) + - Version: 1.23 (or above) - [How to install](https://golang.org/dl/) > To build Edge Orchestrator from Go sources, you need to set GOPATH environment variable: diff --git a/go.mod b/go.mod index 86fbb802..293076dc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/lf-edge/edge-home-orchestration-go -go 1.19 +go 1.23 require ( github.com/casbin/casbin v1.9.1 diff --git a/third_party/zeroconf/go.mod b/third_party/zeroconf/go.mod index 1f85397b..c4ab1aa9 100644 --- a/third_party/zeroconf/go.mod +++ b/third_party/zeroconf/go.mod @@ -1,6 +1,6 @@ module github.com/grandcat/zeroconf -go 1.19 +go 1.23 require ( github.com/cenkalti/backoff v2.2.1+incompatible