AvitalTamir / cyphernetes

A Kubernetes Query Language
https://cyphernet.es
Apache License 2.0
527 stars 12 forks source link

chore: bump to use go1.23 #85

Closed chenrui333 closed 2 months ago

AvitalTamir commented 2 months ago

Hey, thanks for the PR! This seems to have broken the docker build:

#14 [builder  7/11] RUN go mod download
#14 0.397 go: github.com/avitaltamir/cyphernetes@v0.0.0-00010101000000-000000000000: module ./cyphernetes/ requires go >= 1.23.0 (running go 1.22.7; GOTOOLCHAIN=local)
#14 ERROR: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
------
 > [builder  7/11] RUN go mod download:
0.397 go: github.com/avitaltamir/cyphernetes@v0.0.0-00010101000000-000000000000: module ./cyphernetes/ requires go >= 1.23.0 (running go 1.22.7; GOTOOLCHAIN=local)
------
Dockerfile:18
--------------------
  16 |     
  17 |     # Download dependencies
  18 | >>> RUN go mod download
  19 |     
  20 |     # Copy the go source
--------------------
ERROR: failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
make: *** [Makefile:102: docker-build] Error 1
make: Leaving directory '/home/runner/work/cyphernetes/cyphernetes/operator'
Error: Process completed with exit code 2.

If I understand correctly go 1.23 isn't available on the builder image? See the workflow output for more context.

AvitalTamir commented 2 months ago

@chenrui333 thanks for this!