Skip to content

chore: migrate from deprecated gopkg.in/yaml.v2 to maintained go.yaml.in/yaml/v3#22622

Closed
CAICAIIs wants to merge 2 commits intogoharbor:mainfrom
CAICAIIs:update
Closed

chore: migrate from deprecated gopkg.in/yaml.v2 to maintained go.yaml.in/yaml/v3#22622
CAICAIIs wants to merge 2 commits intogoharbor:mainfrom
CAICAIIs:update

Conversation

@CAICAIIs
Copy link

@CAICAIIs CAICAIIs commented Dec 8, 2025

Thank you for contributing to Harbor!

Comprehensive Summary of your change

This PR migrates Harbor from the deprecated gopkg.in/yaml.v2 package to the officially maintained go.yaml.in/yaml/v3 package provided by the YAML organization. The new package is a drop-in replacement that is fully compatible with the original, actively maintained, and receives security updates.

Issue being fixed

Fixes #22620

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@CAICAIIs CAICAIIs requested a review from a team as a code owner December 8, 2025 05:34
….in/yaml/v2

Signed-off-by: CAICAIIs <0d000721@openatom.club>
Copy link
Contributor

@bupd bupd left a comment

Choose a reason for hiding this comment

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

@CAICAIIs Thanks for your contribution, Please upgrade to v3. also do

cd src
go mod tidy

@bupd
Copy link
Contributor

bupd commented Dec 8, 2025

….in/yaml/v3

Signed-off-by: CAICAIIs <0d000721@openatom.club>
@CAICAIIs
Copy link
Author

CAICAIIs commented Dec 8, 2025

Thanks! I’m sorry I failed to run go mod tidy before and didn't notice it. (╯︵╰,)

@CAICAIIs CAICAIIs changed the title chore: migrate from deprecated gopkg.in/yaml.v2 to maintained go.yaml.in/yaml/v2 chore: migrate from deprecated gopkg.in/yaml.v2 to maintained go.yaml.in/yaml/v3 Dec 8, 2025
Copy link
Contributor

@bupd bupd left a comment

Choose a reason for hiding this comment

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

/lgtm

@github-actions
Copy link

This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.

@github-actions github-actions bot added the Stale label Feb 27, 2026
@CAICAIIs CAICAIIs closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from deprecated gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 maintained package

5 participants