From 0b04839ad7ef580b116bcebe5ed78be5a4b260fe Mon Sep 17 00:00:00 2001 From: Robert Nemeti Date: Tue, 26 Nov 2024 11:07:28 +0100 Subject: [PATCH] update go version --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- go.mod | 6 ++---- go.sum | 4 ++-- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 490a9a5..64f34bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,15 +24,15 @@ jobs: run: git fetch --prune --unshallow - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.23' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: "~> v2" args: build --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5191afa..04e0d1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,9 @@ jobs: run: git fetch --prune --unshallow - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.23' - name: Import GPG key id: import_gpg @@ -38,11 +38,11 @@ jobs: PASSPHRASE: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --rm-dist + version: "~> v2" + args: release --clean env: GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/go.mod b/go.mod index d15f8ec..a9b9358 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/syseleven/terraform-provider-metakube -go 1.21 - -toolchain go1.22.5 +go 1.23 replace ( github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/syseleven/terraform-plugin-sdk/v2 v2.31.0-sys11-2 @@ -19,7 +17,7 @@ require ( github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.30.0 github.com/mitchellh/go-homedir v1.1.0 - github.com/syseleven/go-metakube v0.0.0-20241125114516-32b37523d0ce + github.com/syseleven/go-metakube v0.0.0-20241125115540-de9f7401a105 go.uber.org/zap v1.19.0 golang.org/x/mod v0.14.0 k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 diff --git a/go.sum b/go.sum index 14c02fc..c169ef3 100644 --- a/go.sum +++ b/go.sum @@ -179,8 +179,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/syseleven/go-metakube v0.0.0-20241125114516-32b37523d0ce h1:OLtunuohztvLPWNIodvVPsONtebcU3ZmWish5Z077BQ= -github.com/syseleven/go-metakube v0.0.0-20241125114516-32b37523d0ce/go.mod h1:KJB8m9a51Dcci9ee2pLwKetFm9MUrOAjDPAm5ZnOnHI= +github.com/syseleven/go-metakube v0.0.0-20241125115540-de9f7401a105 h1:+Ci95Q4SajisxRItP2LrXyq3G+vbvAMuZpp0xvYiFko= +github.com/syseleven/go-metakube v0.0.0-20241125115540-de9f7401a105/go.mod h1:KJB8m9a51Dcci9ee2pLwKetFm9MUrOAjDPAm5ZnOnHI= github.com/syseleven/terraform-plugin-sdk/v2 v2.31.0-sys11-2 h1:vywVVW9AnKcEiqgbZe16wwuaQaZ8VtMe+xmNBdvdMnU= github.com/syseleven/terraform-plugin-sdk/v2 v2.31.0-sys11-2/go.mod h1:i2C41tszDjiWfziPQDL5R/f3Zp0gahXe5No/MIO9rCE= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=