Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected json-patch dependency version #5474

Closed
howardjohn opened this issue Dec 6, 2023 · 2 comments · Fixed by #5479
Closed

Unexpected json-patch dependency version #5474

howardjohn opened this issue Dec 6, 2023 · 2 comments · Fixed by #5479
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@howardjohn
Copy link
Contributor

In #5197, a dep on gopkg.in/evanphx/json-patch.v5 was added. This linked kubernetes/kubernetes#118384 as rationale, which added a dep on github.com/evanphx/json-patch/v5. Later, kubernetes/kubernetes#120327 reverted the #118384.

There are two concerns:

  • If the reason to bump to v5 was to follow k/k, then given k/k reverted the change this may need to be re-evaluated
  • gopkg.in/evanphx/json-patch.v5 is used instead of github.com/evanphx/json-patch/v5, which differs from the rest of the kubernetes ecosystem and results in duplicate imports.

cc @skitt

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 6, 2023
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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/test-infra repository.

@skitt
Copy link
Member

skitt commented Dec 7, 2023

I agree #5197 should be reverted. Regarding the latter point, gopkg.in is the documented import, so I think that’s what should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants