Skip to content

Commit

Permalink
feat: add support for Go 1.20 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Feb 3, 2023
1 parent 3e7dde7 commit 1f4f1c7
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 1,025 deletions.
16 changes: 8 additions & 8 deletions .build/gcs_upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ options:

steps:
- id: linux.amd64
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=linux"
- "GOARCH=amd64"
Expand All @@ -28,7 +28,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: linux.386
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=linux"
- "GOARCH=386"
Expand All @@ -37,7 +37,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: linux.arm64
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=linux"
- "GOARCH=arm64"
Expand All @@ -46,7 +46,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: linux.arm
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=linux"
- "GOARCH=arm"
Expand All @@ -55,7 +55,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: darwin.amd64
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=darwin"
- "GOARCH=amd64"
Expand All @@ -64,7 +64,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: darwin.arm64
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=darwin"
- "GOARCH=arm64"
Expand All @@ -73,7 +73,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy.$$GOOS.$$GOARCH'
- id: windows.amd64
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=windows"
- "GOARCH=amd64"
Expand All @@ -82,7 +82,7 @@ steps:
- "-c"
- 'go build -ldflags "-X github.com/GoogleCloudPlatform/alloydb-auth-proxy/cmd.metadataString=$$GOOS.$$GOARCH" -o alloydb-auth-proxy-x64.exe'
- id: windows.386
name: "golang:1.19"
name: "golang:1.20"
env:
- "GOOS=windows"
- "GOARCH=386"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"

- name: Checkout base branch
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- name: Checkout code
uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sample-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- name: 'Authenticate to Google Cloud'
id: 'auth'
uses: 'google-github-actions/[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"

- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"

- name: Checkout code
uses: actions/checkout@v3
Expand Down
26 changes: 4 additions & 22 deletions examples/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,37 +1,19 @@
module github.com/GoogleCloudPlatform/alloydb-auth-proxy/examples/go

go 1.19
go 1.20

require (
cloud.google.com/go/alloydbconn v0.4.0
github.com/jackc/pgx/v4 v4.17.2
)
require github.com/jackc/pgx/v4 v4.17.2

require (
cloud.google.com/go/compute v1.13.0 // indirect
cloud.google.com/go/compute/metadata v0.2.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.13.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.12.0 // indirect
go.opencensus.io v0.24.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/stretchr/testify v1.8.1 // indirect
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be // indirect
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/text v0.4.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/api v0.103.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20221205194025-8222ab48f5fc // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
Loading

0 comments on commit 1f4f1c7

Please sign in to comment.