From 004a6004aee6d02040de1da6590b2f1eac7d4834 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 22 Aug 2023 09:59:11 +0200 Subject: [PATCH] chore: update to golang v1.21 (#169) --- .drone.star | 18 +++++++++--------- .golangci.yml | 2 +- Makefile | 2 +- go.mod | 2 +- go.sum | 1 + 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.drone.star b/.drone.star index 9054256..d3d3cc1 100644 --- a/.drone.star +++ b/.drone.star @@ -31,7 +31,7 @@ def test(ctx): "steps": [ { "name": "deps", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "commands": [ "make deps", ], @@ -44,7 +44,7 @@ def test(ctx): }, { "name": "generate", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "commands": [ "make generate", ], @@ -57,7 +57,7 @@ def test(ctx): }, { "name": "lint", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "commands": [ "make lint", ], @@ -70,7 +70,7 @@ def test(ctx): }, { "name": "test", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "commands": [ "make test", ], @@ -109,7 +109,7 @@ def build(ctx): "steps": [ { "name": "generate", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "pull": "always", "commands": [ "make generate", @@ -123,7 +123,7 @@ def build(ctx): }, { "name": "build", - "image": "docker.io/techknowlogick/xgo:go-1.20.x", + "image": "docker.io/techknowlogick/xgo:go-1.21.x", "pull": "always", "commands": [ "ln -s /drone/src /source", @@ -138,7 +138,7 @@ def build(ctx): }, { "name": "executable", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "pull": "always", "commands": [ "$(find dist/ -executable -type f -iname drone-ansible-linux-amd64) --help", @@ -205,7 +205,7 @@ def docker(ctx, arch): "steps": [ { "name": "generate", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "pull": "always", "commands": [ "make generate", @@ -219,7 +219,7 @@ def docker(ctx, arch): }, { "name": "build", - "image": "docker.io/golang:1.20", + "image": "docker.io/golang:1.21", "pull": "always", "commands": [ "make build", diff --git a/.golangci.yml b/.golangci.yml index 52bbe27..9c35061 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -96,4 +96,4 @@ run: linters-settings: gofumpt: extra-rules: true - lang-version: "1.20" + lang-version: "1.21" diff --git a/Makefile b/Makefile index 69f67a9..daf2125 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest GENERATE ?= $(IMPORT)/pkg/templates XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest -XGO_VERSION := go-1.20.x +XGO_VERSION := go-1.21.x XGO_TARGETS ?= linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64 TAGS ?= netgo diff --git a/go.mod b/go.mod index 78a46e5..dd2d1ed 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/owncloud-ci/drone-ansible -go 1.20 +go 1.21 require ( github.com/drone-plugins/drone-plugin-lib v0.4.1 diff --git a/go.sum b/go.sum index 5343e81..e9336a8 100644 --- a/go.sum +++ b/go.sum @@ -28,3 +28,4 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=