Skip to content

Conversation

@scop
Copy link
Collaborator

@scop scop commented Oct 30, 2023

ghodss/yaml is used only in config loading, and the yaml/v3 unmarshaling appears to be a drop-in replacement; the ghodss/yaml feature of reusing json struct tags for YAML is not used there.

For other uses in the tree, yaml/v3 looks like a drop in replacement for yaml.v2, too.

Switches also from gopkg.in/yaml to go.yaml.in/yaml, see https://github.com/yaml/go-yaml#project-status

Caveat: untested beyond test suite and go run ./cmd/ssh-inscribe defaults output eyeballing.

@scop scop requested a review from aakso October 30, 2023 08:14
@scop scop force-pushed the refactor/yaml-v3 branch from 9c1427b to 3b10df6 Compare October 30, 2023 18:36
scop added 2 commits December 8, 2025 11:52
ghodss/yaml is used only in config loading, and the yaml.v3 unmarshaling
appears to be a drop-in replacement; the ghodss/yaml feature of reusing
`json` struct tags for YAML is not used there.

For other uses in the tree, yaml.v3 looks like a drop in replacement for
yaml.v2, too.
@scop scop force-pushed the refactor/yaml-v3 branch from 3b10df6 to e7a77c0 Compare December 8, 2025 09:52
@scop
Copy link
Collaborator Author

scop commented Dec 8, 2025

Switched to go.yaml.in/yaml/v3 per https://github.com/yaml/go-yaml#project-status

@scop scop changed the title refactor: migrate to yaml.v3 refactor: migrate to go,yaml.in/yaml/v3 Dec 8, 2025
@scop scop changed the title refactor: migrate to go,yaml.in/yaml/v3 refactor: migrate to go.yaml.in/yaml/v3 Dec 8, 2025
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.

2 participants