Skip to content

Commit

Permalink
chore: update to go 1.22.3
Browse files Browse the repository at this point in the history
* Update our go.mod to use toolchain
* Make sure dockerfiles are using pinned versions
* Set the version to 1.22.3
  • Loading branch information
justinsb committed May 8, 2024
1 parent 0b8cc19 commit ed44951
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
4 changes: 3 additions & 1 deletion experiments/composite/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/GoogleCloudPlatform/k8s-config-connector/experiments/composite

go 1.21.5
go 1.22

toolchain go1.22.3
2 changes: 1 addition & 1 deletion experiments/compositions/composition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22.3 as builder
ARG TARGETOS
ARG TARGETARCH

Expand Down
3 changes: 1 addition & 2 deletions experiments/compositions/composition/Dockerfile.inline
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

# ----------------- Build Container ---------------------------
# Build the go app.
# Explicitly set to latest vs golang:1.22
FROM golang:1.22 AS build-stage
FROM golang:1.22.3 AS build-stage

# Set destination for COPY
WORKDIR /go/src/app
Expand Down
2 changes: 1 addition & 1 deletion experiments/compositions/composition/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module google.com/composition

go 1.22.0
go 1.22

toolchain go1.22.3

Expand Down
2 changes: 1 addition & 1 deletion experiments/compositions/facade/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22.3 as builder
ARG TARGETOS
ARG TARGETARCH

Expand Down
4 changes: 3 additions & 1 deletion experiments/compositions/facade/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module facade

go 1.20
go 1.22

toolchain go1.22.3

require (
k8s.io/apimachinery v0.28.3
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/GoogleCloudPlatform/k8s-config-connector

go 1.21.5
go 1.22

toolchain go1.22.3

replace github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp => ./mockgcp

Expand Down
4 changes: 3 additions & 1 deletion mockgcp/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp

go 1.21.5
go 1.22

toolchain go1.22.3

require (
cloud.google.com/go/compute v1.23.0
Expand Down

0 comments on commit ed44951

Please sign in to comment.