Skip to content

Commit 75cddb0

Browse files
committed
chore: update Go
1 parent 01f137d commit 75cddb0

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

.github/workflows/go-cross.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
go-version: [ 1.17, 1.x ]
14+
go-version: [ 1.19, 1.x ]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
steps:
@@ -27,7 +27,7 @@ jobs:
2727

2828
# https://github.com/marketplace/actions/cache
2929
- name: Cache Go modules
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
# In order:
3333
# * Module download cache

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
name: Main Process
1313
runs-on: ubuntu-latest
1414
env:
15-
GO_VERSION: 1.17
16-
GOLANGCI_LINT_VERSION: v1.46.2
17-
YAEGI_VERSION: v0.13.0
15+
GO_VERSION: 1.19
16+
GOLANGCI_LINT_VERSION: v1.50.0
17+
YAEGI_VERSION: v0.14.2
1818
CGO_ENABLED: 0
1919
defaults:
2020
run:
@@ -37,7 +37,7 @@ jobs:
3737

3838
# https://github.com/marketplace/actions/cache
3939
- name: Cache Go modules
40-
uses: actions/cache@v2
40+
uses: actions/cache@v3
4141
with:
4242
path: ${{ github.workspace }}/go/pkg/mod
4343
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.golangci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,20 @@ linters-settings:
2929
linters:
3030
enable-all: true
3131
disable:
32+
- deadcode # deprecated
33+
- exhaustivestruct # deprecated
34+
- golint # deprecated
35+
- ifshort # deprecated
3236
- interfacer # deprecated
3337
- maligned # deprecated
38+
- nosnakecase # deprecated
3439
- scopelint # deprecated
35-
- golint # deprecated
36-
- exhaustivestruct # deprecated
40+
- scopelint # deprecated
41+
- structcheck # deprecated
42+
- varcheck # deprecated
43+
- sqlclosecheck # not relevant (SQL)
44+
- rowserrcheck # not relevant (SQL)
45+
- execinquery # not relevant (SQL)
3746
- cyclop # duplicate of gocyclo
3847
- bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30
3948
- dupl

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/traefik/plugindemo
22

3-
go 1.17
3+
go 1.19

0 commit comments

Comments
 (0)