Upgrade gopkg.in/yaml.v2 to go.yaml.in/yaml/v3#2023
Conversation
|
Hi @chimanjain. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
There was a problem hiding this comment.
Pull request overview
This pull request updates the Operator Registry codebase to use gopkg.in/yaml.v3 instead of gopkg.in/yaml.v2, aligning YAML encoding/decoding usage with the newer major version across relevant packages.
Changes:
- Switched Go imports from
gopkg.in/yaml.v2togopkg.in/yaml.v3in bundle, indexer, and sqlite test code. - Updated
go.modto requiregopkg.in/yaml.v3 v3.0.1directly (withgopkg.in/yaml.v2remaining as an indirect dependency). - Minor test formatting adjustments for readability in
pkg/sqlite/directory_test.go.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/sqlite/directory_test.go | Updates YAML import to v3 and reformats a couple of composite literals in assertions. |
| pkg/lib/indexer/indexer.go | Updates YAML import to v3 for indexer YAML interactions. |
| pkg/lib/bundle/utils_test.go | Updates YAML import to v3 for test YAML marshaling. |
| pkg/lib/bundle/generate.go | Updates YAML import to v3 for bundle annotation/dockerfile generation workflows. |
| pkg/lib/bundle/generate_test.go | Updates YAML import to v3 for YAML-based tests. |
| pkg/lib/bundle/chartutil.go | Updates YAML import to v3 for Helm chart metadata parsing. |
| go.mod | Moves the direct dependency from gopkg.in/yaml.v2 to gopkg.in/yaml.v3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rashmigottipati The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
New changes are detected. LGTM label has been removed. |
|
thanks @perdasilva and @rashmigottipati for reviewing the PR, I fixed the UT'S and set the indentation to |
|
I would not move with it. |
Signed-off-by: Chiman Jain <chimanjain15@gmail.com>
…tencies Signed-off-by: Chiman Jain <chimanjain15@gmail.com>
Signed-off-by: Chiman Jain <chimanjain15@gmail.com>
e679a16 to
52ecb0c
Compare
Signed-off-by: Chiman Jain <chimanjain15@gmail.com>
|
Thanks @camilamacedo86 for the review. I've update the gomodule to |
Description of the change:
Upgraded
gopkg.in/yaml.v2togo.yaml.in/yaml/v3(YAMLmaintained repository).Reviewer Checklist
/docs