Skip to content

Commit 01de721

Browse files
authored
chore: migrate to go1.22 (scaleway#2540)
* chore: migrate to go1.22 * add toolchain * Fix tfproviderlint and make it part of the tools
1 parent 49f87e1 commit 01de721

File tree

13 files changed

+115
-19
lines changed

13 files changed

+115
-19
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Install Go
4747
uses: actions/setup-go@v5
4848
with:
49-
go-version: 1.21
49+
go-version: 1.22
5050
- name: Checkout
5151
uses: actions/checkout@v4
5252
- name: Run Acceptance Tests

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fetch-depth: 2
1515
- uses: actions/setup-go@v5
1616
with:
17-
go-version: '1.21'
17+
go-version: '1.22'
1818
- name: Run coverage
1919
run: go test -v -timeout=2h -coverprofile=coverage.out -covermode=count ./...
2020
env:

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- docs/**
1313

1414
env:
15-
GO_VERSION: "1.21"
15+
GO_VERSION: "1.22"
1616
GO111MODULE: on
1717

1818
jobs:

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install Go
4848
uses: actions/setup-go@v5
4949
with:
50-
go-version: 1.21
50+
go-version: 1.22
5151
- name: Checkout
5252
uses: actions/checkout@v4
5353
- name: Run Acceptance Tests
@@ -95,7 +95,7 @@ jobs:
9595
- name: Install Go
9696
uses: actions/setup-go@v5
9797
with:
98-
go-version: 1.21
98+
go-version: 1.22
9999
- name: Checkout
100100
uses: actions/checkout@v4
101101
- name: Run sweepers

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: Set up Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.21
31+
go-version: 1.22
3232
-
3333
name: Import GPG key
3434
id: import_gpg

.github/workflows/tfproviderlint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-go@v5
1414
with:
15-
go-version: 1.21
15+
go-version: 1.22
1616
- name: Install tfproviderlint
17-
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint@latest
17+
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
1818
- name: Run tfproviderlint
19-
run: tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...
19+
run: make tfproviderlint
2020
tfproviderdocs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.21
26+
go-version: 1.22
2727
- uses: hashicorp/setup-terraform@v3
2828
- run: go install github.com/bflad/tfproviderdocs@latest
29-
- run: tfproviderdocs check -provider-name scaleway -enable-contents-check
29+
- run: make tfproviderdocs

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
tests:
99
strategy:
1010
matrix:
11-
go-version: [1.21.x]
11+
go-version: [1.22.x]
1212
platform: [ubuntu-latest]
1313
runs-on: ${{ matrix.platform }}
1414
steps:

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.21
1+
1.22

GNUmakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ website:
5555

5656
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website
5757

58+
tfproviderlint:
59+
go run github.com/bflad/tfproviderlint/cmd/tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...
60+
61+
tfproviderdocs:
62+
go run github.com/bflad/tfproviderdocs check -provider-name scaleway -enable-contents-check

cmd/tftemplate/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tftemplate
22

3-
go 1.21
3+
go 1.22
44

55
require github.com/AlecAivazis/survey/v2 v2.3.7
66

0 commit comments

Comments
 (0)