Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pre-sync/oci-image-verification/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Build stage
FROM golang:1.25 as builder
FROM golang:1.26 as builder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While the base image is updated to golang:1.26, this change is not sufficient to update the Go version used for the build. The go.mod file in this directory specifies toolchain go1.25.7, which forces the Go toolchain to use that specific version, ignoring the one provided by the Docker image.

To complete the upgrade to Go 1.26, you must also update pre-sync/oci-image-verification/go.mod:

- go 1.25.0
- toolchain go1.25.7
+ go 1.26.0
+ toolchain go1.26.0

Without updating go.mod, this Dockerfile change has no effect.


WORKDIR /
COPY . .
Expand Down