Skip to content

Conversation

rfay
Copy link
Member

@rfay rfay commented May 9, 2025

The Issue

The long-painful yaml.v3 has finally been archived, we need to move on

How This PR Solves The Issue

Mostly move to goccy/go-yaml

It still has a couple of things:

$ go mod why gopkg.in/yaml.v3
# gopkg.in/yaml.v3
github.com/ddev/ddev/pkg/testcommon
github.com/stretchr/testify/assert
github.com/stretchr/testify/assert/yaml
gopkg.in/yaml.v3

According to

testify/assert can use a pluggable library, and there are references to it, but I didn't have the patience to understand what to do. And using in tests is not that big a problem.

Manual Testing Instructions

I don't think there's anything that needs to be done.

@github-actions github-actions bot added dependencies Pull requests that update a dependency file maintenance labels May 9, 2025
@rfay
Copy link
Member Author

rfay commented May 9, 2025

goccy/go-yaml interprets database version 8.0 (which we currently have unquoted) as a float, so we get mysql:8 instead of mysql:8.0.

Tests are great. Solving this, not so much.

@rfay
Copy link
Member Author

rfay commented May 12, 2025

@rfay
Copy link
Member Author

rfay commented May 12, 2025

I think we'll want to try github.com/yaml/go-yaml as a future for this.

@rfay rfay closed this May 12, 2025
@rfay rfay deleted the 20250509_rfay_new_go_yaml branch July 22, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant