chore: migrate gopkg.in/yaml.v3 to go.yaml.in/yaml/v3#7592
Merged
olblak merged 1 commit intoupdatecli:mainfrom Jan 22, 2026
Merged
chore: migrate gopkg.in/yaml.v3 to go.yaml.in/yaml/v3#7592olblak merged 1 commit intoupdatecli:mainfrom
olblak merged 1 commit intoupdatecli:mainfrom
Conversation
1 task
Signed-off-by: Olblak <[email protected]>
975376c to
4342156
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates YAML v3 usage from gopkg.in/yaml.v3 to the new module path go.yaml.in/yaml/v3 across the codebase.
Changes:
- Replaced
gopkg.in/yaml.v3imports withgo.yaml.in/yaml/v3in core and plugin packages. - Updated
go.modto addgo.yaml.in/yaml/v3 v3.0.4as a direct dependency and markgopkg.in/yaml.v3as indirect. - Updated
go.sumto reflect module dependency cleanup.
Reviewed changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/plugins/utils/test/main.go | Switch YAML v3 import to new module path. |
| pkg/plugins/autodiscovery/updatecli/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/precommit/precommit.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/kubernetes/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/ko/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/helmfile/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/helm/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/fleet/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/dockercompose/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/plugins/autodiscovery/argocd/utils.go | Switch YAML v3 import alias to new module path. |
| pkg/core/reports/export.go | Switch YAML v3 import to new module path for report export. |
| pkg/core/registry/metadata.go | Switch YAML v3 import to new module path for policy metadata loading. |
| pkg/core/pipeline/sort.go | Switch YAML v3 import to new module path. |
| pkg/core/engine/autodiscovery.go | Switch YAML v3 import to new module path. |
| pkg/core/config/template.go | Switch YAML v3 import to new module path. |
| pkg/core/config/main.go | Switch YAML v3 import to new module path. |
| pkg/core/config/helper.go | Switch YAML v3 import to new module path. |
| pkg/core/config/funcsHelm.go | Switch YAML v3 import to new module path. |
| pkg/core/compose/file.go | Switch YAML v3 import to new module path. |
| go.mod | Add go.yaml.in/yaml/v3 direct dependency; mark gopkg.in/yaml.v3 indirect. |
| go.sum | Refresh checksums after dependency changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Waiting for #7527 to be merged
Fix #4930
migrate gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 which is the new location
Test
/
Additional Information
Checklist
Tradeoff
Potential improvement