Skip to content

Commit 61f0388

Browse files
authored
Upgrade to Go 1.20 (GoogleCloudPlatform#9506)
* Upgrade TPG/TPGB go.mod to Go 1.20 * Upgrade doctor script to check users have Go 1.20 for building the provider * Update workflows that interact with the provider codebase directly * Update tpgtools to Go 1.20 * Upgrade everything else from Go 1.19 to Go 1.20
1 parent 08dfecd commit 61f0388

16 files changed

Lines changed: 17 additions & 17 deletions

File tree

.ci/magician/go.mod

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

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/inconshreveable/mousetrap v1.1.0 // indirect

.github/workflows/build-downstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Go
4848
uses: actions/setup-go@v3
4949
with:
50-
go-version: '^1.19'
50+
go-version: '^1.20'
5151

5252
# Cache Go modules
5353
- name: Cache Go modules

.github/workflows/membership-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: '^1.19.1'
18+
go-version: '^1.20.1'
1919
- name: Run membership checker unit tests
2020
run: |
2121
cd .ci/magician

.github/workflows/test-tgc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
if: ${{ !failure() && steps.pull_request.outputs.has_changes == 'true' }}
8282
uses: actions/setup-go@v3
8383
with:
84-
go-version: '^1.19'
84+
go-version: '^1.20'
8585
- name: Build Terraform Google Conversion
8686
if: ${{ !failure() && steps.pull_request.outputs.has_changes == 'true' }}
8787
run: |

.github/workflows/test-tpg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
if: ${{ !failure() && steps.pull_request.outputs.has_changes == 'true' }}
8383
uses: actions/setup-go@v3
8484
with:
85-
go-version: '^1.19'
85+
go-version: '^1.20'
8686
- name: Build Provider
8787
if: ${{ !failure() && steps.pull_request.outputs.has_changes == 'true' }}
8888
run: |

.github/workflows/unit-test-tgc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Go
3131
uses: actions/setup-go@v3
3232
with:
33-
go-version: '^1.19'
33+
go-version: '^1.20'
3434

3535
- name: Cache Go modules and build cache
3636
uses: actions/cache@v3

.github/workflows/unit-test-tpg.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@v3
3030
with:
31-
go-version: '^1.19'
31+
go-version: '^1.20'
3232

3333
- name: Cache Go modules and build cache
3434
uses: actions/cache@v3

.github/workflows/unit-tests-diff-processor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: '^1.19.1'
19+
go-version: '^1.20.1'
2020

2121
- name: Build
2222
run: |

docs/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/magic-modules/docs
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/alex-shpak/hugo-book v0.0.0-20230424134111-d86d5e70c7c0 // indirect

mmv1/third_party/terraform/go.mod.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% autogen_exception -%>
22
module github.com/hashicorp/terraform-provider-google
3-
go 1.19
3+
go 1.20
44

55
require (
66
cloud.google.com/go/bigtable v1.19.0

0 commit comments

Comments
 (0)