Skip to content

Conversation

@vhvb1989
Copy link
Member

@vhvb1989 vhvb1989 commented Oct 22, 2025

Migrated all Go modules in the azure-dev project from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (version 3.0.4), following the recommended migration path after the gopkg.in lock in April 2024.

Files Updated:
Go Source Files (5 files):

azd_yaml_schema.go - Updated import statement
extension_schema.go - Updated import statement
extension_schema_test.go - Updated import statement
init.go - Updated import statement
parse.go - Updated import statement
Go Module Files (3 modules):

go.mod - Main module

Added: go.yaml.in/yaml/v3 v3.0.4 (direct dependency)
Moved gopkg.in/yaml.v3 v3.0.1 to indirect (transitive dependency from gopkg.in/dnaeon/go-vcr.v3)
go.mod

Added: go.yaml.in/yaml/v3 v3.0.4 (direct dependency)
Kept gopkg.in/yaml.v3 v3.0.1 as indirect (transitive dependency)
go.mod

No direct yaml dependency (only has gopkg.in/yaml.v3 as transitive dependency)
Verification Completed:
✅ All Go source files updated to use go.yaml.in/yaml/v3
✅ All modules verified successfully
✅ Build completed successfully
✅ Tests passing (including previously failing yaml-related tests)
✅ Code formatted with gofmt
✅ No compilation errors

Key Notes:
The correct import path is go.yaml.in/yaml/v3 (with /yaml/ in the path)
The new version is v3.0.4, which is compatible with the existing code
gopkg.in/yaml.v3 remains as an indirect dependency due to the gopkg.in/dnaeon/go-vcr.v3 package dependency, which is acceptable
All yaml parsing functionality works correctly with the new package
The migration is complete and all code is functioning properly with the new yaml library!

fix: #5970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrate from gppkg.in/yaml to go.yaml.in/yaml

5 participants