Skip to content

Commit 36f9467

Browse files
committed
chore: update Go versions
1 parent 393ab47 commit 36f9467

File tree

9 files changed

+27
-27
lines changed

9 files changed

+27
-27
lines changed

Diff for: .github/workflows/post-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Install Go
1515
uses: actions/setup-go@v3
1616
with:
17-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
18-
go-version: 1.18
17+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
18+
go-version: 1.19.0-rc.2
1919

2020
- name: Update GitHub action config
2121
run: make assets/github-action-config.json

Diff for: .github/workflows/pr-extra.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-go@v3
1515
with:
16-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
17-
go-version: 1.18
16+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
17+
go-version: 1.19.0-rc.2
1818
- name: Run go list
1919
run: go list -json -m all > go.list
2020
- name: Nancy

Diff for: .github/workflows/pr.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77

88
env:
9-
GO_VERSION: 1.18
9+
GO_VERSION: 1.19.0-rc.2
1010

1111
jobs:
1212
# Check if there any dirty change for go mod tidy
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v3
1818
with:
19-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
19+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
2020
go-version: ${{ env.GO_VERSION }}
2121
- name: Checkout code
2222
uses: actions/checkout@v3
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install Go
3535
uses: actions/setup-go@v3
3636
with:
37-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
37+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
3838
go-version: ${{ env.GO_VERSION }}
3939
- name: lint
4040
uses: golangci/[email protected]
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Go
5353
uses: actions/setup-go@v3
5454
with:
55-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
55+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
5656
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
5757
- name: Run tests
5858
run: make.exe test
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Go
6767
uses: actions/setup-go@v3
6868
with:
69-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
69+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
7070
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
7171
- name: Run tests
7272
run: make test
@@ -77,14 +77,14 @@ jobs:
7777
strategy:
7878
matrix:
7979
golang:
80-
- 1.17
8180
- 1.18
81+
- 1.19.0-rc.2
8282
steps:
8383
- uses: actions/checkout@v3
8484
- name: Install Go
8585
uses: actions/setup-go@v3
8686
with:
87-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
87+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
8888
go-version: ${{ matrix.golang }}
8989
- uses: actions/cache@v3
9090
with:
@@ -108,7 +108,7 @@ jobs:
108108
- name: Install Go
109109
uses: actions/setup-go@v3
110110
with:
111-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
111+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
112112
go-version: ${{ env.GO_VERSION }}
113113
- name: Check generated files are up to date
114114
run: make fast_check_generated

Diff for: .github/workflows/tag.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Install Go
1515
uses: actions/setup-go@v3
1616
with:
17-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
18-
go-version: 1.18
17+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
18+
go-version: 1.19.0-rc.2
1919
- name: Unshallow
2020
run: git fetch --prune --unshallow
2121

@@ -41,8 +41,8 @@ jobs:
4141
- name: Install Go
4242
uses: actions/setup-go@v3
4343
with:
44-
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
45-
go-version: 1.18
44+
stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
45+
go-version: 1.19.0-rc.2
4646

4747
- name: Unshallow
4848
run: git fetch --prune --unshallow

Diff for: .golangci.reference.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ run:
6868
allow-parallel-runners: false
6969

7070
# Define the Go version limit.
71-
# Mainly related to generics support in go1.18.
72-
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
73-
go: '1.18'
71+
# Mainly related to generics support since go1.18.
72+
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18
73+
go: '1.19'
7474

7575

7676
# output configuration options

Diff for: build/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stage 1 building the code
2-
FROM golang:1.18 as builder
2+
FROM golang:1.19 as builder
33

44
ARG VERSION
55
ARG SHORT_COMMIT
@@ -10,7 +10,7 @@ WORKDIR /golangci
1010
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X main.commit=$SHORT_COMMIT -X main.date=$DATE" -o golangci-lint ./cmd/golangci-lint/main.go
1111

1212
# stage 2
13-
FROM golang:1.18
13+
FROM golang:1.19
1414
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
1515
COPY --from=builder /golangci/golangci-lint /usr/bin/
1616
CMD ["golangci-lint"]

Diff for: build/Dockerfile.alpine

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stage 1 building the code
2-
FROM golang:1.18-alpine as builder
2+
FROM golang:1.19-alpine as builder
33

44
ARG VERSION
55
ARG SHORT_COMMIT
@@ -15,7 +15,7 @@ RUN apk --no-cache add gcc musl-dev git mercurial
1515
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X main.commit=$SHORT_COMMIT -X main.date=$DATE" -o golangci-lint ./cmd/golangci-lint/main.go
1616

1717
# stage 2
18-
FROM golang:1.18-alpine
18+
FROM golang:1.19-alpine
1919
# gcc is required to support cgo;
2020
# git and mercurial are needed most times for go get`, etc.
2121
# See https://github.com/docker-library/golang/issues/80

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/golangci/golangci-lint
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
4d63.com/gochecknoglobals v0.1.0

Diff for: netlify.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[context.production.environment]
2-
GO_VERSION = "1.18"
2+
GO_VERSION = "1.19"
33
NODE_VERSION = "17"
44
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
55
# NPM_FLAGS = "--legacy-peer-deps"
66
# NPM_FLAGS = "--force"
77
NPM_VERSION = "8.5.5"
88

99
[context.deploy-preview.environment]
10-
GO_VERSION = "1.18"
10+
GO_VERSION = "1.19"
1111
NODE_VERSION = "17"
1212
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
1313
# NPM_FLAGS = "--legacy-peer-deps"
1414
# NPM_FLAGS = "--force"
1515
NPM_VERSION = "8.5.5"
1616

1717
[context.branch-deploy.environment]
18-
GO_VERSION = "1.18"
18+
GO_VERSION = "1.19"
1919
NODE_VERSION = "17"
2020
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
2121
# NPM_FLAGS = "--legacy-peer-deps"

0 commit comments

Comments
 (0)