-
Notifications
You must be signed in to change notification settings - Fork 39
Bump golang from 1.24 to 1.26 #406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM golang:1.24 | ||
| FROM golang:1.26 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find and read go.mod to verify toolchain version
find . -name "go.mod" -type f | head -5Repository: openshift/whereabouts-cni Length of output: 78 🏁 Script executed: # Find and read hack/build-go.sh to understand toolchain handling
find . -path "*/hack/build-go.sh" -type fRepository: openshift/whereabouts-cni Length of output: 88 🏁 Script executed: cat -n ./go.mod | head -20Repository: openshift/whereabouts-cni Length of output: 801 🏁 Script executed: cat -n ./hack/build-go.shRepository: openshift/whereabouts-cni Length of output: 2602 Use The 🤖 Prompt for AI Agents |
||
| ADD . /usr/src/whereabouts | ||
|
|
||
| ENV GOARCH="arm64" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/whereabouts-cni
Length of output: 1546
🏁 Script executed:
Repository: openshift/whereabouts-cni
Length of output: 170
🏁 Script executed:
# Read the Dockerfile to understand the full context cat -n DockerfileRepository: openshift/whereabouts-cni
Length of output: 871
🏁 Script executed:
Repository: openshift/whereabouts-cni
Length of output: 994
🏁 Script executed:
Repository: openshift/whereabouts-cni
Length of output: 2602
Go toolchain mismatch:
golang:1.26builder withtoolchain go1.24.6in go.mod.The Dockerfile uses
golang:1.26, butgo.modpinstoolchain go1.24.6. Sincehack/build-go.shdoes not setGOTOOLCHAIN=localand invokes plaingo build, Go 1.26 will attempt to download and use the pinned Go 1.24.6 toolchain per the go.mod directive. This adds unnecessary network dependency and slows the Docker build.Recommended fixes:
go.modtogo 1.26andtoolchain go1.26.x, orGOTOOLCHAIN=localto the build environment inhack/build-go.sh(or in the Dockerfile beforeRUN ./hack/build-go.sh)🤖 Prompt for AI Agents