Skip to content

Commit

Permalink
Update golang to 1.23 (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizen authored Nov 25, 2024
1 parent 89d432e commit d1a93b0
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $(ENVTEST): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

img-test:
docker run --rm -v $(SRCROOT):/luigi -w /luigi golang:1.22 bash -c "GOFLAGS=-buildvcs=false make test"
docker run --rm -v $(SRCROOT):/luigi -w /luigi golang:1.23 bash -c "GOFLAGS=-buildvcs=false make test"

img-build: $(BUILD_DIR) img-test
docker build --network host . -t ${IMG}
Expand Down
2 changes: 1 addition & 1 deletion dhcp-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion dhcp-controller/dhcpserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion dhcp-controller/dhcpserver/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module dhcpserver

go 1.21
go 1.23

require (
github.com/fsnotify/fsnotify v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion dhcp-controller/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module dhcp-controller

go 1.21
go 1.23

require (
github.com/apparentlymart/go-cidr v1.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/platform9/luigi

go 1.22.0
go 1.23

toolchain go1.22.7
toolchain go1.23.3

require (
github.com/dustin/go-humanize v1.0.1
Expand Down
2 changes: 1 addition & 1 deletion hostplumber/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion hostplumber/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $(ENVTEST): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

img-test:
docker run --rm -v $(SRCROOT):/hostplumber -w /hostplumber golang:1.22 bash -c "make test"
docker run --rm -v $(SRCROOT):/hostplumber -w /hostplumber golang:1.23 bash -c "make test"

img-build: $(BUILD_DIR) img-test
docker build --network host . -t ${IMG}
Expand Down
4 changes: 2 additions & 2 deletions hostplumber/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module hostplumber

go 1.22.0
go 1.23

toolchain go1.22.7
toolchain go1.23.3

require github.com/vishvananda/netlink v1.1.0

Expand Down
2 changes: 1 addition & 1 deletion yoshi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder
ARG TARGETOS
ARG TARGETARCH

Expand Down
4 changes: 2 additions & 2 deletions yoshi/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/platform9/luigi/yoshi

go 1.22
go 1.23

toolchain go1.22.7
toolchain go1.23.3

require (
github.com/go-logr/logr v1.3.0
Expand Down

0 comments on commit d1a93b0

Please sign in to comment.