-
Notifications
You must be signed in to change notification settings - Fork 16
chore(deps): bump golang version to 1.26 #2712
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
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,6 +1,6 @@ | ||
| version: "2" | ||
| run: | ||
| go: 1.25.3 | ||
| go: 1.26.2 | ||
| linters: | ||
| default: none | ||
| enable: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.25.9@sha256:e06a6f4c85c3ca75f64127542449c9770fb885adfb592f987c576d268ac108de AS build | ||
| FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build | ||
| USER root | ||
| ENV GOFLAGS="-mod=mod" | ||
|
|
||
|
|
@@ -14,8 +14,6 @@ RUN make probe GOOS=linux GOARCH=${TARGETARCH} | |
|
|
||
| FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7@sha256:12db9874bd753eb98b1ab3d840e75de5d6842ac0604fbd68c012adefe97140be as standard | ||
|
|
||
| RUN microdnf install shadow-utils | ||
|
Contributor
Author
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. The build is stuck because it prompts to upgrade an existing package:
Collaborator
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. Stupid q but... did we not need this package?
Contributor
Author
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. It already exists in the base image |
||
|
|
||
| RUN useradd -u 1001 unprivilegeduser | ||
| # Switch to non-root user | ||
| USER unprivilegeduser | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| module github.com/stackrox/acs-fleet-manager/tools | ||
|
|
||
| go 1.25.0 | ||
| go 1.26.0 | ||
|
|
||
| require ( | ||
| github.com/matryer/moq v0.5.2 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Platform specification conflicts with coding guidelines.
The
--platform=$BUILDPLATFORMallows dynamic platform selection, but the coding guidelines specify that container images should be built forlinux/amd64platform. Consider using--platform=linux/amd64instead to ensure consistent builds. As per coding guidelines, "Build container images for linux/amd64 platform" for Dockerfile*.📝 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
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.
The platform selection is made dynamic on purpose to build images on arm chips (mac developer laptops)
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.
@kovayur, understood — using$BUILDPLATFORMmakes sense for cross-compilation support so developers on ARM Macs can build without emulation. I'll withdraw that comment.