Skip to content

Update module gopkg.in/evanphx/json-patch.v4 to v5#319

Open
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/gopkg.in-evanphx-json-patch.v4-5.x
Open

Update module gopkg.in/evanphx/json-patch.v4 to v5#319
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/gopkg.in-evanphx-json-patch.v4-5.x

Conversation

@red-hat-konflux

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

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
gopkg.in/evanphx/json-patch.v4 v4.13.0v5.9.11 age confidence

Warning

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


Release Notes

evanphx/json-patch (gopkg.in/evanphx/json-patch.v4)

v5.9.11

Compare Source

What's Changed

Full Changelog: evanphx/json-patch@v5.9.10...v5.9.11

v5.9.10

Compare Source

What's Changed

New Contributors

Full Changelog: evanphx/json-patch@v5.9.0...v5.9.10

v5.9.0

Compare Source

What's Changed

Full Changelog: evanphx/json-patch@v5.8.1...v5.9.0

v5.8.1: Fix API breakage

Compare Source

This PR fixes Operation containing a reference to internal/json and breaking the ability to manually compose one. This restores that ability using a type alias.

Full Changelog: evanphx/json-patch@v5.8.0...v5.8.1

v5.8.0: Blargh Phixs and Empathyprovements

Compare Source

This release fixes a few stray panics, addresses large number accuracy, and improves performance!

What's Changed

Full Changelog: evanphx/json-patch@v5.7.0...v5.8.0

v5.7.0: The 2023 Release

Compare Source

What's Changed

New Contributors

Full Changelog: evanphx/json-patch@v5.6.0...v5.7.0

v5.6.0: Bug fixes

Compare Source

What's Changed

New Contributors

Full Changelog: evanphx/json-patch@v5.5.0...v5.6.0

v5.5.0: Better null handling

Compare Source

This incorporates a few fixes related to how nulls are handles in array's and objects.

v5.3.0: Fix zero sized document crash

Compare Source

This fixes a crash bug where submitted an empty slice as the document would panic.

v5.2.0

Compare Source

v5.1.0

Compare Source

v5.0.0: Proper Go modules release

Compare Source

This release has a proper /v5 directory, unlike the previous releases that did not have a /v4 dir. Thanks to @​BenTheElder for getting this sorted out!


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.

@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 12, 2026
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The indirect JSON Patch dependency in go.mod changes from module v4.13.0 to module v5.9.11.

Changes

JSON Patch Dependency

Layer / File(s) Summary
Update JSON Patch module
go.mod
Replaces the indirect gopkg.in/evanphx/json-patch.v4 dependency at v4.13.0 with gopkg.in/evanphx/json-patch.v5 at v5.9.11.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title accurately describes the dependency upgrade from json-patch v4 to v5.
Description check ✅ Passed The description is directly related to the dependency update and its release notes.

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

@openshift-ci
openshift-ci Bot requested review from onmete and xrajesh July 12, 2026 12:14

@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.

🧹 Nitpick comments (1)
go.mod (1)

97-97: 🗄️ Data Integrity & Integration | 🔵 Trivial | 💤 Low value

Drop the unused gopkg.in/evanphx/json-patch.v5 pin
go.mod:97 only adds noise here; the module graph uses github.com/evanphx/json-patch/v5 through sigs.k8s.io/controller-runtime, so this indirect entry can be removed.

🤖 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 97, Remove the unused gopkg.in/evanphx/json-patch.v5 v5.9.11
indirect requirement from go.mod, while preserving the
github.com/evanphx/json-patch/v5 dependency used through
sigs.k8s.io/controller-runtime.

Source: Path instructions

🤖 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.

Nitpick comments:
In `@go.mod`:
- Line 97: Remove the unused gopkg.in/evanphx/json-patch.v5 v5.9.11 indirect
requirement from go.mod, while preserving the github.com/evanphx/json-patch/v5
dependency used through sigs.k8s.io/controller-runtime.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 64bd5fd9-b0d6-472f-a970-61279915a3c7

📥 Commits

Reviewing files that changed from the base of the PR and between d73f983 and 903d775.

📒 Files selected for processing (1)
  • go.mod
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • openshift/lightspeed-agentic-sandbox (manual)

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD d73f983 and 2 for PR HEAD 903d775 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 2f67be3 and 1 for PR HEAD 903d775 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 28d17fb and 0 for PR HEAD 903d775 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/hold

Revision 903d775 was retested 3 times: holding

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 13, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/gopkg.in-evanphx-json-patch.v4-5.x branch from 903d775 to 10bc1f5 Compare July 13, 2026 17:28
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2026
@openshift-ci

openshift-ci Bot commented Jul 13, 2026

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/gopkg.in-evanphx-json-patch.v4-5.x branch from 10bc1f5 to 6e863c4 Compare July 17, 2026 12:15

@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 97: Add the missing checksum entry for gopkg.in/evanphx/json-patch.v5
v5.9.11 to go.sum, matching the dependency version declared in go.mod.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 52820720-f270-4cb6-b35d-3a9ec29165eb

📥 Commits

Reviewing files that changed from the base of the PR and between 10bc1f5 and 6e863c4.

📒 Files selected for processing (1)
  • go.mod
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • openshift/lightspeed-agentic-sandbox (manual)

Comment thread go.mod
google.golang.org/genproto/googleapis/rpc v0.0.0-20260630182238-925bb5da69e7 // indirect
google.golang.org/grpc v1.82.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/evanphx/json-patch.v5 v5.9.11 // indirect

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

go mod verify
go list -m all
govulncheck ./...

Repository: openshift/lightspeed-agentic-operator

Length of output: 386


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== go.mod excerpt =="
nl -ba go.mod | sed -n '88,104p'

echo
echo "== go.sum entries for json-patch =="
rg -n 'evanphx/json-patch|gomodules.xyz/jsonpatch' go.sum || true

echo
echo "== module graph entries =="
go list -m all | rg 'evanphx/json-patch|gomodules.xyz/jsonpatch' || true

echo
echo "== go mod download info =="
go mod download -json gopkg.in/evanphx/json-patch.v5@v5.9.11 2>/dev/null | sed -n '1,80p' || true

Repository: openshift/lightspeed-agentic-operator

Length of output: 236


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== search usages =="
rg -n 'json-patch|jsonpatch' . --glob '!go.sum' --glob '!vendor/**' || true

Repository: openshift/lightspeed-agentic-operator

Length of output: 888


🌐 Web query:

gopkg.in/evanphx/json-patch.v5 v5.9.11 OSV vulnerability

💡 Result:

As of July 17, 2026, there are no security vulnerabilities associated with version v5.9.11 of the package gopkg.in/evanphx/json-patch.v5 (now primarily distributed via github.com/evanphx/json-patch/v5) [1][2][3]. Official vulnerability databases, including the Go Vulnerability Database, do not list any security advisories for version v5.9.11 [1][4][5]. The only prominent historical vulnerability for the evanphx/json-patch library is GO-2021-0076 (CVE-2018-14632), which affected much older versions of the package and was patched in 2018 [4][5][6]. Version v5.9.11, released on January 28, 2025, primarily introduced non-security updates, such as exporting error types and removing dependencies on unmaintained packages [7][8][9][10]. If your security scanning tools are flagging this version, it is likely a false positive or a misidentification of older, unrelated issues [11].

Citations:


🏁 Script executed (no clone):

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
import json, urllib.request
payload = {
  "package": {"ecosystem": "Go", "name": "gopkg.in/evanphx/json-patch.v5"},
  "version": "v5.9.11"
}
req = urllib.request.Request(
    "https://api.osv.dev/v1/query",
    data=json.dumps(payload).encode(),
    headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req, timeout=20) as resp:
    data = json.load(resp)
print(json.dumps(data, indent=2)[:12000])
PY

Length of output: 2720


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== go.mod around line 97 =="
sed -n '90,100p' go.mod

echo
echo "== go.sum matches =="
rg -n 'evanphx/json-patch|gomodules.xyz/jsonpatch' go.sum || true

echo
echo "== module metadata =="
go mod download -json gopkg.in/evanphx/json-patch.v5@v5.9.11 | sed -n '1,120p'

Repository: openshift/lightspeed-agentic-operator

Length of output: 2323


Add the matching go.sum entry for gopkg.in/evanphx/json-patch.v5 v5.9.11
go.mod pins the module, but go.sum does not yet include its checksum entry.

🤖 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 97, Add the missing checksum entry for
gopkg.in/evanphx/json-patch.v5 v5.9.11 to go.sum, matching the dependency
version declared in go.mod.

Source: Path instructions

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/gopkg.in-evanphx-json-patch.v4-5.x branch 2 times, most recently from 4588a4e to 3e9d9a1 Compare July 20, 2026 12:12
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/main/gopkg.in-evanphx-json-patch.v4-5.x branch from 3e9d9a1 to 15e4220 Compare July 21, 2026 08:21
@openshift-ci

openshift-ci Bot commented Jul 21, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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 commented Jul 21, 2026

Copy link
Copy Markdown

@red-hat-konflux[bot]: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 15e4220 link true /test unit
ci/prow/generate 15e4220 link true /test generate

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants