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 committed Nov 25, 2024
1 parent 32695aa commit 127b87f
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/anchore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:
- name: Build the Docker image
run: docker build . --file Dockerfile --tag platform9/luigi_dev:latest
- name: Run the Anchore Grype scan action
<<<<<<< HEAD
uses: anchore/scan-action@v3
=======
uses: anchore/scan-action@v5
>>>>>>> 89d432e (Bump anchore/scan-action from 4 to 5 (#263))
id: scan
with:
image: "platform9/luigi_dev:latest"
Expand Down
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
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/platform9/luigi

go 1.23

toolchain go1.23.3

require (
github.com/dustin/go-humanize v1.0.0
github.com/go-logr/logr v1.4.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 127b87f

Please sign in to comment.