Skip to content

Commit

Permalink
chore: update to golang v1.21 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Aug 22, 2023
1 parent e95da73 commit 9bff2eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test(ctx):
"steps": [
{
"name": "deps",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make deps",
],
Expand All @@ -37,7 +37,7 @@ def test(ctx):
},
{
"name": "generate",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make generate",
],
Expand All @@ -50,7 +50,7 @@ def test(ctx):
},
{
"name": "lint",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make lint",
],
Expand All @@ -63,7 +63,7 @@ def test(ctx):
},
{
"name": "test",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make test",
],
Expand Down Expand Up @@ -102,7 +102,7 @@ def docker(ctx):
"steps": [
{
"name": "generate",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make generate",
],
Expand All @@ -115,7 +115,7 @@ def docker(ctx):
},
{
"name": "build",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make build",
],
Expand Down Expand Up @@ -198,7 +198,7 @@ def build(ctx):
"steps": [
{
"name": "generate",
"image": "docker.io/golang:1.20",
"image": "docker.io/golang:1.21",
"commands": [
"make generate",
],
Expand All @@ -211,7 +211,7 @@ def build(ctx):
},
{
"name": "build",
"image": "docker.io/techknowlogick/xgo:go-1.20.x",
"image": "docker.io/techknowlogick/xgo:go-1.21.x",
"commands": [
"ln -s /drone/src /source",
"make release",
Expand All @@ -225,7 +225,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-fork-approval-linux-amd64) --help",
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ run:
linters-settings:
gofumpt:
extra-rules: true
lang-version: "1.20"
lang-version: "1.21"
ireturn:
allow:
- anon
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest

GENERATE ?=
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
XGO_VERSION := go-1.20.x
XGO_VERSION := go-1.21.x
XGO_TARGETS ?= linux/amd64

TAGS ?= netgo
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/owncloud-ci/drone-fork-approval

go 1.20
go 1.21

require (
github.com/caarlos0/env/v9 v9.0.0
Expand Down

0 comments on commit 9bff2eb

Please sign in to comment.