Skip to content

Bump github.com/evanphx/json-patch from 4.12.0+incompatible to 5.9.11+incompatible#478

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible
Open

Bump github.com/evanphx/json-patch from 4.12.0+incompatible to 5.9.11+incompatible#478
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 25, 2026

Bumps github.com/evanphx/json-patch from 4.12.0+incompatible to 5.9.11+incompatible.

Release notes

Sourced from github.com/evanphx/json-patch's releases.

v5.9.11

What's Changed

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

v5.9.10

What's Changed

New Contributors

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

v5.9.0

What's Changed

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

Fix API breakage

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

Blargh Phixs and Empathyprovements

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

The 2023 Release

What's Changed

... (truncated)

Commits
  • 84a4bb1 Merge pull request #209 from skitt/export-errs-v5
  • 7a7a88a Export errBadJSONDoc and errBadJSONPatch errors
  • bd18525 Upgrade go-flags
  • 42f26cb Fix spacing
  • 0a3482b Merge pull request #206 from koba1t/remove_unmaintained_error_pkg
  • 106306d remove unmaintained errors pkg
  • e7cfbbb Merge pull request #203 from skitt/drop-gopkgin-v5
  • 61e1ad7 Drop the reference to gopkg.in for v5
  • b7a4e4a Merge pull request #202 from evanphx/f-html-escape
  • 7eef36c Guard using options to avoid a crash bug
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added area/dependency Issues or PRs related to dependency changes ok-to-test Indicates a non-member PR verified by an org member that is safe to test. labels Mar 25, 2026
@github-actions
Copy link

🚨 Major Version Update Detected 🚨

This PR contains a major version update that requires manual review:

  • Dependency: github.com/evanphx/json-patch
  • Previous version: 4.12.0+incompatible
  • New version: 5.9.11+incompatible

Please review the changelog and breaking changes before merging.

Auto-merge has been disabled for this PR.

@coderabbitai
Copy link

coderabbitai bot commented Mar 25, 2026

Walkthrough

Bumped github.com/evanphx/json-patch in go.mod from v4.12.0+incompatible to v5.9.11+incompatible and removed an indirect github.com/pkg/errors v0.9.1 // indirect entry; no other module directives were changed.

Changes

Cohort / File(s) Summary
Dependency updates
go.mod
Updated direct dependency github.com/evanphx/json-patch v4.12.0+incompatiblev5.9.11+incompatible; removed indirect github.com/pkg/errors v0.9.1 // indirect. No other go directive changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible

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

@openshift-ci openshift-ci bot requested review from joshbranham and tnierman March 25, 2026 04:07
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 25, 2026

Hi @dependabot[bot]. Thanks for your PR.

I'm waiting for a openshift 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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 25, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dependabot[bot]
Once this PR has been reviewed and has the lgtm label, please assign theautoroboto for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible branch from 36adfeb to 144b3f1 Compare March 25, 2026 04:17
@github-actions
Copy link

🚨 Major Version Update Detected 🚨

This PR contains a major version update that requires manual review:

  • Dependency: github.com/evanphx/json-patch
  • Previous version: 4.12.0+incompatible
  • New version: 5.9.11+incompatible

Please review the changelog and breaking changes before merging.

Auto-merge has been disabled for this PR.

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible branch from 144b3f1 to 59d545d Compare March 25, 2026 04:24
@github-actions
Copy link

🚨 Major Version Update Detected 🚨

This PR contains a major version update that requires manual review:

  • Dependency: github.com/evanphx/json-patch
  • Previous version: 4.12.0+incompatible
  • New version: 5.9.11+incompatible

Please review the changelog and breaking changes before merging.

Auto-merge has been disabled for this PR.

Copy link

@coderabbitai coderabbitai bot left a comment

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 the current code and only fix it if needed.

Inline comments:
In `@go.mod`:
- Line 6: The go.mod entry for the dependency github.com/evanphx/json-patch is
pinned as v5.9.11+incompatible, indicating the upstream uses v5 semantics
without the proper /v5 import path; check the upstream repository for a proper
module v5 release (module path github.com/evanphx/json-patch/v5) and, if
available, update imports and go.mod to use the canonical v5 module path and
version (replace github.com/evanphx/json-patch v5.9.11+incompatible with
github.com/evanphx/json-patch/v5 v5.x.y), run go mod tidy and fix any import
lines that should change from github.com/evanphx/json-patch to
github.com/evanphx/json-patch/v5 across the codebase.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e3af32b6-abd0-4d29-9ee0-dfd87b9c54d6

📥 Commits

Reviewing files that changed from the base of the PR and between 36adfeb and 59d545d.

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


require (
github.com/evanphx/json-patch v4.12.0+incompatible
github.com/evanphx/json-patch v5.9.11+incompatible
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check for inconsistent import paths across the codebase

echo "=== Direct imports of github.com/evanphx/json-patch (unversioned) ==="
rg -n --type=go '"github\.com/evanphx/json-patch"' -C 2

echo -e "\n=== Direct imports of github.com/evanphx/json-patch/v5 (versioned) ==="
rg -n --type=go '"github\.com/evanphx/json-patch/v5"' -C 2

echo -e "\n=== Count of each import style ==="
echo -n "Unversioned imports: "
rg -c --type=go '"github\.com/evanphx/json-patch"' | wc -l
echo -n "Versioned (/v5) imports: "
rg -c --type=go '"github\.com/evanphx/json-patch/v5"' | wc -l

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 653


The go.mod entry uses the +incompatible suffix, which indicates improper Go module versioning.

Line 6 shows github.com/evanphx/json-patch v5.9.11+incompatible. The +incompatible suffix means this library is using v5 semantics but without adopting the proper /v5 import path convention for Go modules v1.11+. The codebase correctly imports it as github.com/evanphx/json-patch (unversioned) in one location. The versioned path (github.com/evanphx/json-patch/v5) appearing in go.mod is a transitive dependency—this is normal and not a problem.

The concern is whether this library should be migrated to its proper versioned import path if the library maintainers have adopted that convention. Verify the upstream library's current status and consider updating the import if a properly-versioned version is available.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` at line 6, The go.mod entry for the dependency
github.com/evanphx/json-patch is pinned as v5.9.11+incompatible, indicating the
upstream uses v5 semantics without the proper /v5 import path; check the
upstream repository for a proper module v5 release (module path
github.com/evanphx/json-patch/v5) and, if available, update imports and go.mod
to use the canonical v5 module path and version (replace
github.com/evanphx/json-patch v5.9.11+incompatible with
github.com/evanphx/json-patch/v5 v5.x.y), run go mod tidy and fix any import
lines that should change from github.com/evanphx/json-patch to
github.com/evanphx/json-patch/v5 across the codebase.

Bumps [github.com/evanphx/json-patch](https://github.com/evanphx/json-patch) from 4.12.0+incompatible to 5.9.11+incompatible.
- [Release notes](https://github.com/evanphx/json-patch/releases)
- [Commits](evanphx/json-patch@v4.12.0...v5.9.11)

---
updated-dependencies:
- dependency-name: github.com/evanphx/json-patch
  dependency-version: 5.9.11+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/evanphx/json-patch-5.9.11incompatible branch from 59d545d to 98badc1 Compare March 25, 2026 04:36
@github-actions
Copy link

🚨 Major Version Update Detected 🚨

This PR contains a major version update that requires manual review:

  • Dependency: github.com/evanphx/json-patch
  • Previous version: 4.12.0+incompatible
  • New version: 5.9.11+incompatible

Please review the changelog and breaking changes before merging.

Auto-merge has been disabled for this PR.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
go.mod (1)

6-6: ⚠️ Potential issue | 🟠 Major

Avoid mixed json-patch module paths (+incompatible and /v5) in the same module graph.

Line 6 pins github.com/evanphx/json-patch v5.9.11+incompatible while Line 36 also resolves github.com/evanphx/json-patch/v5 v5.9.11 indirectly. This split path usage is a maintainability risk and can lead to inconsistent behavior across packages that import different paths.

#!/bin/bash
# Verify whether both json-patch import paths are used and where.
# Expected:
# - Prefer a single canonical import path across the repo.
# - If both are present, plan migration to one path.

echo "=== go.mod entries ==="
rg -n -C2 'github\.com/evanphx/json-patch(/v5)?\s+v' go.mod

echo
echo "=== Direct Go imports: unversioned path ==="
rg -nP --type=go -C2 '"github\.com/evanphx/json-patch"'

echo
echo "=== Direct Go imports: /v5 path ==="
rg -nP --type=go -C2 '"github\.com/evanphx/json-patch/v5"'

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` at line 6, The go.mod currently mixes two import paths for the same
module (github.com/evanphx/json-patch and github.com/evanphx/json-patch/v5);
pick the canonical v5 path and migrate: remove the +incompatible entry and
add/replace it with github.com/evanphx/json-patch/v5 v5.9.11 in go.mod, update
all Go source imports from "github.com/evanphx/json-patch" to
"github.com/evanphx/json-patch/v5", then run go get/module tidy to reconcile
module graph and go vet/build to ensure no remaining unversioned imports; verify
with the provided grep/ripgrep checks for both import forms and fix any
remaining occurrences.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@go.mod`:
- Line 6: The go.mod currently mixes two import paths for the same module
(github.com/evanphx/json-patch and github.com/evanphx/json-patch/v5); pick the
canonical v5 path and migrate: remove the +incompatible entry and add/replace it
with github.com/evanphx/json-patch/v5 v5.9.11 in go.mod, update all Go source
imports from "github.com/evanphx/json-patch" to
"github.com/evanphx/json-patch/v5", then run go get/module tidy to reconcile
module graph and go vet/build to ensure no remaining unversioned imports; verify
with the provided grep/ripgrep checks for both import forms and fix any
remaining occurrences.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 94db09fa-e988-4c37-9e90-923721ea1a40

📥 Commits

Reviewing files that changed from the base of the PR and between 59d545d and 98badc1.

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 25, 2026

@dependabot[bot]: all tests passed!

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

area/dependency Issues or PRs related to dependency changes ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants