0
0
mirror of https://github.com/thegeeklab/wp-ansible.git synced 2024-11-09 07:00:41 +00:00

chore: update to golang v1.21 (#169)

This commit is contained in:
Robert Kaussow 2023-08-22 09:59:11 +02:00 committed by GitHub
parent 82fbd5ee2c
commit 004a6004ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 12 deletions

View File

@ -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",

View File

@ -96,4 +96,4 @@ run:
linters-settings:
gofumpt:
extra-rules: true
lang-version: "1.20"
lang-version: "1.21"

View File

@ -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

2
go.mod
View File

@ -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

1
go.sum
View File

@ -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=