Skip to content

Update module golang.org/x/net to v0.57.0 - #1184

Merged
openshift-merge-bot[bot] merged 1 commit into
mainfrom
konflux/mintmaker/main/golang.org-x-net-0.x
Jul 11, 2026
Merged

Update module golang.org/x/net to v0.57.0#1184
openshift-merge-bot[bot] merged 1 commit into
mainfrom
konflux/mintmaker/main/golang.org-x-net-0.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
golang.org/x/net v0.56.0v0.57.0 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Summary by CodeRabbit

  • Chores
    • Updated underlying language and networking components to newer versions.
    • Included the latest text-processing and cryptography improvements.

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Jul 11, 2026
@red-hat-konflux

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
golang.org/x/text v0.38.0 -> v0.40.0
golang.org/x/crypto v0.53.0 -> v0.54.0

@openshift-ci

openshift-ci Bot commented Jul 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@openshift-ci

openshift-ci Bot commented Jul 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 11, 2026
@openshift-ci

openshift-ci Bot commented Jul 11, 2026

Copy link
Copy Markdown

Hi @red-hat-konflux[bot]. Thanks for your PR.

I'm waiting for a openshift-online member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Walkthrough

Updated Go module dependency versions in go.mod: golang.org/x/text, golang.org/x/crypto, and golang.org/x/net were bumped, while golang.org/x/mod remained unchanged.

Changes

Go module dependency updates

Layer / File(s) Summary
Dependency version bumps
go.mod
Updates golang.org/x/text to v0.40.0, golang.org/x/crypto to v0.54.0, and golang.org/x/net to v0.57.0; retains golang.org/x/mod at v0.38.0.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

Suggested reviewers: miguelhbrito, rcampos2029

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects one of the dependency updates in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
No-Weak-Crypto ✅ Passed PR only changes go.mod/go.sum dependency versions; no source code adds weak crypto, custom crypto, or insecure secret comparisons.
Container-Privileges ✅ Passed PR only updates Go module versions in go.mod/go.sum; no container/K8s manifests or privilege settings were changed.
No-Sensitive-Data-In-Logs ✅ Passed PR only changes go.mod/go.sum dependency versions; no logging code or sensitive-data output was added.
No-Hardcoded-Secrets ✅ Passed Diff only updates go.mod/go.sum dependency versions and checksums; no secret literals, private keys, credentialed URLs, or api_key/secret/token/password assignments found.
No-Injection-Vectors ✅ Passed PR only bumps Go deps in go.mod/go.sum; no SQL/shell/eval/pickle/yaml/os.system/innerHTML patterns appear in the diff.
Ai-Attribution ✅ Passed No AI-tool usage was mentioned in the PR or commit; the only trailer is Signed-off-by, with no Assisted-by/Generated-by or Co-authored-by found.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/main/golang.org-x-net-0.x

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Line 29: Update the Go toolchain version in the publish-release workflow’s
go-version setting from 1.23 to Go 1.25 or newer, ensuring tagged release builds
satisfy the module’s Go 1.25.9 requirement.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 19047833-3c54-4dcd-8fdf-ca97b98c4223

📥 Commits

Reviewing files that changed from the base of the PR and between 9954bed and 4944a38.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
go.uber.org/mock v0.6.0
golang.org/x/term v0.45.0
golang.org/x/text v0.38.0
golang.org/x/text v0.40.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

grep -nE '^(go|toolchain) ' go.mod || true
fd -H -t f | rg '(^|/)(Makefile|Dockerfile[^/]*|.*\.ya?ml|\.tool-versions)$' \
  | xargs -r rg -n 'go-version|golang:|GO_VERSION|toolchain|^go '

Repository: openshift-online/ocm-cli

Length of output: 381


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo '--- go.mod ---'
sed -n '1,60p' go.mod
echo
echo '--- check-pull-request workflow ---'
sed -n '1,120p' .github/workflows/check-pull-request.yaml
echo
echo '--- publish-release workflow ---'
sed -n '1,120p' .github/workflows/publish-release.yaml

Repository: openshift-online/ocm-cli

Length of output: 9096


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo '--- GOTOOLCHAIN references ---'
rg -n 'GOTOOLCHAIN|toolchain ' . || true

echo
echo '--- setup-go references ---'
rg -n 'setup-go@|go-version:' .github/workflows || true

echo
echo '--- repo root go/toolchain directives ---'
grep -nE '^(go|toolchain) ' go.mod || true

Repository: openshift-online/ocm-cli

Length of output: 712


🌐 Web query:

Go 1.23 automatic toolchain download go.mod go 1.25.9 behavior actions/setup-go older version

💡 Result:

In modern Go (version 1.21 and later), the go and toolchain directives in go.mod allow the Go toolchain to automatically manage and download required versions, acting similarly to tools like nvm or rustup [1][2]. When a go command is executed, if the currently running Go toolchain version is older than the version specified in the go.mod file, the Go toolchain can automatically download the required version, unpack it, and re-exec the command using that newer version, provided the GOTOOLCHAIN environment variable is set to its default (auto) [1][2]. Regarding the behavior of actions/setup-go (a common GitHub Action for Go) and specific versions like Go 1.25.9: 1. Enforcement via GOTOOLCHAIN=local: To prevent unintended automatic toolchain upgrades in CI/CD environments—which can lead to inconsistent builds—actions/setup-go now defaults to setting GOTOOLCHAIN=local whenever a user explicitly provides a go-version or go-version-file input [3][4][5]. This forces the environment to use the locally installed version and disables the automatic downloading behavior [3][4]. 2. Toolchain Directive Handling: If you use go-version-file: 'go.mod', the action parses your go.mod file [6]. It prioritizes the toolchain directive if present; otherwise, it falls back to the go directive [7][3]. 3. Go 1.25.9 Context: Go 1.25.9 is a legitimate, released minor version (released April 7, 2026) containing security and bug fixes [8][9]. If your go.mod contains toolchain go1.25.9 or go 1.25.9, and you are not using an explicit go-version input that overrides it with GOTOOLCHAIN=local, the Go toolchain would attempt to use or download 1.25.9 [1][2]. However, because actions/setup-go (when configured with a specific version) enforces GOTOOLCHAIN=local, it will prioritize the version you requested in the action configuration over the go.mod directive [3][4][5]. In summary, actions/setup-go is designed to be predictable: by setting GOTOOLCHAIN=local automatically, it prevents the Go toolchain from "auto-switching" to a different version than the one you explicitly defined in your CI workflow [4][5]. If you require the automatic download behavior in CI, you would need to manually override the GOTOOLCHAIN environment variable to auto in your workflow, though this is generally discouraged for stable CI/CD pipelines [4].

Citations:


Bump the release workflow to Go 1.25+. .github/workflows/publish-release.yaml still uses go-version: 1.23, which is incompatible with this module’s go 1.25.9 requirement and can break tagged release builds.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` at line 29, Update the Go toolchain version in the publish-release
workflow’s go-version setting from 1.23 to Go 1.25 or newer, ensuring tagged
release builds satisfy the module’s Go 1.25.9 requirement.

@openshift-merge-bot
openshift-merge-bot Bot merged commit dda9ab2 into main Jul 11, 2026
13 checks passed
@red-hat-konflux
red-hat-konflux Bot deleted the konflux/mintmaker/main/golang.org-x-net-0.x branch July 12, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants