Skip to content

fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2 - #456

Open
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/github.com-redhatinsights-platform-go-middlewares-2.x
Open

fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2#456
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/github.com-redhatinsights-platform-go-middlewares-2.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/redhatinsights/platform-go-middlewares v1.0.0v2.1.0 age confidence

Warning

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


Release Notes

redhatinsights/platform-go-middlewares (github.com/redhatinsights/platform-go-middlewares)

v2.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: RedHatInsights/platform-go-middlewares@v2.0.0...v2.1.0

v2.0.0

Compare Source


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.

…wares to v2

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux

red-hat-konflux Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: github.com/RedHatInsights/quickstarts imports
	github.com/RedHatInsights/quickstarts/pkg/generated: cannot find module providing package github.com/RedHatInsights/quickstarts/pkg/generated

File name: go.mod
Post-upgrade command 'make generate' has not been added to the allowed list in allowedCommands

@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown

Walkthrough

The PR updates go.mod to upgrade the direct dependency on the Red Hat platform Go middlewares module from v1.0.0 to the v2.1.0 major version. This is a straightforward dependency version bump with no additional changes.

Changes

Platform Go Middlewares V2 Upgrade

Layer / File(s) Summary
Middleware v2 Dependency Update
go.mod
Direct dependency on github.com/redhatinsights/platform-go-middlewares is replaced with github.com/redhatinsights/platform-go-middlewares/v2 at version v2.1.0.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR body is a Renovate update summary and does not follow the repository template, missing required sections like issue link, testing, checklist, and AI disclosure. Rewrite the description using the required template and add the missing sections, especially Description, How to test locally, Checklist, and AI disclosure.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: updating the platform-go-middlewares dependency to version 2.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/main/github.com-redhatinsights-platform-go-middlewares-2.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 15: main.go still imports the v1 path for the middleware; update the
import to "github.com/redhatinsights/platform-go-middlewares/v2/request_id" and
ensure the call to request_id.ConfiguredRequestID(...) continues to compile
against the v2 package, adjusting any symbol names/signatures if the v2 API
changed (search for request_id.ConfiguredRequestID in main.go to locate usage
and update the import path to the /v2 module).
🪄 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: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: fd4c0893-029c-406a-b13b-bb66194756cc

📥 Commits

Reviewing files that changed from the base of the PR and between 8585343 and c793266.

📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
github.com/prometheus/client_golang v1.23.2
github.com/redhatinsights/app-common-go v1.6.9
github.com/redhatinsights/platform-go-middlewares v1.0.0
github.com/redhatinsights/platform-go-middlewares/v2 v2.1.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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether v1 middleware imports are still present.
rg -n --type go -C2 'github\.com/redhatinsights/platform-go-middlewares(?!/v2)'

# Verify current usages of request_id middleware symbol.
rg -n --type go -C2 '\brequest_id\.ConfiguredRequestID\s*\('

Repository: RedHatInsights/quickstarts

Length of output: 570


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Find any v1 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/request_id' .

echo "== Find any v2 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/v2/request_id' .

echo "== Find usages of ConfiguredRequestID =="
rg -n --type go '\brequest_id\.ConfiguredRequestID\s*\(' .

Repository: RedHatInsights/quickstarts

Length of output: 221


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== go.mod dependency for /v2 =="
sed -n '1,40p' go.mod | nl -ba

echo "== All v1 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/request_id' .

echo "== All v2 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/v2/request_id' .

echo "== Usages of ConfiguredRequestID =="
rg -n --type go '\bConfiguredRequestID\s*\(' .

echo "== Usages with request_id qualifier =="
rg -n --type go '\brequest_id\.ConfiguredRequestID\s*\(' .

Repository: RedHatInsights/quickstarts

Length of output: 163


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== go.mod dependency for /v2 =="
awk 'NR<=40 {printf "%d:%s\n", NR, $0}' go.mod

echo "== All v1 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/request_id' .

echo "== All v2 request_id imports =="
rg -n --type go 'github\.com/redhatinsights/platform-go-middlewares/v2/request_id' .

echo "== Usages of ConfiguredRequestID =="
rg -n --type go '\bConfiguredRequestID\s*\(' .

echo "== Usages with request_id qualifier =="
rg -n --type go '\brequest_id\.ConfiguredRequestID\s*\(' .

Repository: RedHatInsights/quickstarts

Length of output: 1950


Complete the /v2 migration in Go imports (not just go.mod).

go.mod already upgrades to github.com/redhatinsights/platform-go-middlewares/v2 v2.1.0, but main.go still imports github.com/redhatinsights/platform-go-middlewares/request_id (v1 path) and uses request_id.ConfiguredRequestID(...). Update main.go to import the v2 request_id package (.../platform-go-middlewares/v2/request_id) so the code actually uses the v2 module.

🤖 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 15, main.go still imports the v1 path for the middleware;
update the import to
"github.com/redhatinsights/platform-go-middlewares/v2/request_id" and ensure the
call to request_id.ConfiguredRequestID(...) continues to compile against the v2
package, adjusting any symbol names/signatures if the v2 API changed (search for
request_id.ConfiguredRequestID in main.go to locate usage and update the import
path to the /v2 module).

@red-hat-konflux red-hat-konflux Bot changed the title fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2 fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2 - autoclosed Jul 26, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 26, 2026
@red-hat-konflux red-hat-konflux Bot changed the title fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2 - autoclosed fix(deps): update module github.com/redhatinsights/platform-go-middlewares to v2 Jul 26, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants