From 4f6512f0a68ee417603f3ffe286aa2bf62965f96 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Wed, 21 Aug 2024 12:52:08 +0800 Subject: [PATCH 1/9] upgrade go version --- go.mod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 97749a9..ab3f0ea 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module azappconfig/provider -go 1.22.0 - -toolchain go1.22.1 +go 1.23.0 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 From 2ed219540a4f595352c1292c6667cccffef639b9 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Wed, 21 Aug 2024 12:53:40 +0800 Subject: [PATCH 2/9] update --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 000d840..2deb371 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22' + go-version: 'stable' - name: Run Build run: go build -o ./out/manager ./cmd/main.go - name: Run Test From 4e9e238f94ab9f9d760bf5d82a7439c899d24212 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Fri, 23 Aug 2024 11:08:11 +0800 Subject: [PATCH 3/9] update ci --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2deb371..75a9ab1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: 'stable' + check-latest: true - name: Run Build run: go build -o ./out/manager ./cmd/main.go - name: Run Test From 09df256b9a4ded5119fe098aa2089a3f8f87de80 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Fri, 23 Aug 2024 11:15:27 +0800 Subject: [PATCH 4/9] specify go version --- .github/workflows/ci.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 75a9ab1..12ed339 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,8 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 'stable' - check-latest: true + go-version: '1.23' - name: Run Build run: go build -o ./out/manager ./cmd/main.go - name: Run Test From 60a3ec8e897c917b93c20383b3e1cfd1b55897c5 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Fri, 23 Aug 2024 11:21:15 +0800 Subject: [PATCH 5/9] update golint ci --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d6f8ae7..acbb81e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: 1.23.0 - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: From 2285754b364b042fd14c2a10aa8a24f52d2f80bb Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Fri, 23 Aug 2024 11:29:55 +0800 Subject: [PATCH 6/9] disable cache --- .github/workflows/golangci-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index acbb81e..fb7c454 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,6 +23,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 1.23.0 + cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: From 569bb44eec84194ac7450ebce1e56935cb5b658e Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Thu, 12 Sep 2024 10:17:57 +0800 Subject: [PATCH 7/9] setup go with v1.23.1 --- .github/workflows/golangci-lint.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index fb7c454..57ac593 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -22,8 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.23.0 - cache: false + go-version: 1.23.1 - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: From 3949f6444c37b1998587d9ebba9dcc04f8880854 Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Thu, 12 Sep 2024 11:32:04 +0800 Subject: [PATCH 8/9] upgrade golangli lint version --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 57ac593..f5c61fd 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -26,5 +26,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.59 + version: v1.61.0 args: --timeout 10m \ No newline at end of file From 7eec8369e3baafab7b7db99411f0dfd562a7df4e Mon Sep 17 00:00:00 2001 From: "Lingling Ye (from Dev Box)" Date: Thu, 12 Sep 2024 15:51:28 +0800 Subject: [PATCH 9/9] use 1.23 version base image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3cd12f4..8e19e13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.22-cbl-mariner2.0 as builder +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.23-cbl-mariner2.0 as builder ARG MODULE_VERSION WORKDIR /workspace