Skip to content

chore(deps): update module gomodules.xyz/jsonpatch/v2 to v3#808

Open
red-hat-konflux[bot] wants to merge 1 commit into
release/2.y.zfrom
konflux/mintmaker/release/2.y.z/gomodules.xyz-jsonpatch-v2-3.x
Open

chore(deps): update module gomodules.xyz/jsonpatch/v2 to v3#808
red-hat-konflux[bot] wants to merge 1 commit into
release/2.y.zfrom
konflux/mintmaker/release/2.y.z/gomodules.xyz-jsonpatch-v2-3.x

Conversation

@red-hat-konflux
Copy link
Copy Markdown
Contributor

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

This PR contains the following updates:

Package Change Age Confidence
gomodules.xyz/jsonpatch/v2 v2.5.0v3.0.1 age confidence

Warning

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


Release Notes

gomodules/jsonpatch (gomodules.xyz/jsonpatch/v2)

v3.0.1

Compare Source

This release uses our forked gomodules/orderedmap library. Our forked version has 2 major changes:

  • Uses *OrderedMap instead of OrderedMap inside nested orderedmaps.
  • I ported unstructured helpers from Kubernetes to work with orderedmaps.

v3.0.0

Compare Source

This release uses iancoleman/orderedmap to generate predictable patch. This is very useful if the generated patch is checked into a VCS like git.


Configuration

📅 Schedule: 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.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented May 14, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the indirect Go module dependency gomodules.xyz/jsonpatch/v2 in go.mod to a newer major version line, aligning with Renovate’s suggested jsonpatch v3 series while adjusting the v2 requirement entry.

File-Level Changes

Change Details Files
Bumps the jsonpatch module requirement to the newer v3-compatible line by updating the v2 requirement entry in go.mod.
  • Changes the gomodules.xyz/jsonpatch/v2 requirement version in go.mod from v2.5.0 to v2.4.0, as part of the Renovate-managed upgrade towards the v3.0.1 jsonpatch release line
  • Keeps all other module requirements and indirect dependencies unchanged in go.mod
go.mod
go.sum

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue, and left some high level feedback:

  • The PR title/description indicate an upgrade to gomodules.xyz/jsonpatch v3, but go.mod is downgrading from v2.5.0 to v2.4.0 on the v2 module path—please align the dependency version and module path with the intended v3 upgrade.
  • Since jsonpatch introduces a new major version, double‑check that all import paths are updated to the v3 module path and that any required code changes for the breaking release notes are included in this PR.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The PR title/description indicate an upgrade to gomodules.xyz/jsonpatch v3, but go.mod is downgrading from v2.5.0 to v2.4.0 on the v2 module path—please align the dependency version and module path with the intended v3 upgrade.
- Since jsonpatch introduces a new major version, double‑check that all import paths are updated to the v3 module path and that any required code changes for the breaking release notes are included in this PR.

## Individual Comments

### Comment 1
<location path="go.mod" line_range="127" />
<code_context>
 	golang.org/x/text v0.36.0 // indirect
 	golang.org/x/time v0.15.0 // indirect
-	gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
+	gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
 	google.golang.org/genproto/googleapis/rpc v0.0.0-20260427160629-7cedc36a6bc4 // indirect
 	google.golang.org/grpc v1.81.0 // indirect
</code_context>
<issue_to_address>
**🚨 issue (security):** Downgrading jsonpatch may reintroduce fixed bugs or security issues; is this version change intentional and validated?

If this is to work around a regression in v2.5.0, please confirm that we don’t rely on any fixes introduced after v2.4.0 (especially security or bug fixes) and that the upstream changelog has been reviewed to validate that v2.4.0 still meets our requirements.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread go.mod Outdated
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux Bot force-pushed the konflux/mintmaker/release/2.y.z/gomodules.xyz-jsonpatch-v2-3.x branch from 2653a47 to 847c342 Compare May 18, 2026 17:22
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