mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Unsupported YAML package #1555
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1555
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Sep 17, 2025).
Is your feature request related to a problem? Please describe.
I'm always frustrated when we're using unsupported dependencies.
gopkg.in/yaml.v3is exactly that, see https://github.com/go-yaml/yaml which is archived now. Consider7106c858f2as well, this change (while proper for yaml.v3) requires all package users to have a dependency ongopkg.in/yaml.v3as well (compare that toUmarshalJSON()using standard types).Describe the solution you'd like
Replace it with something maintained and something that has a better API.
Describe alternatives you've considered
Things work as is, but it can be a problem long-term.
Additional context
https://github.com/nspcc-dev/neo-go/pull/4010#discussion_r2354781898
7106c858f2@roman-khimov commented on GitHub (Sep 22, 2025):
There is https://pkg.go.dev/go.yaml.in/yaml/v4 which is a supported fork, but it has the same interface problems. Looks like the only real alternative is https://github.com/goccy/go-yaml (which is used by etcd).
@roman-khimov commented on GitHub (Sep 22, 2025):
Related: https://github.com/yaml/go-yaml/issues/56, btw.