You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
YAML has this excellent anchor/reference syntax to identify two parts of the YAML syntax that refer to the same element. This maps perfectly to a language that has pointers! Unfortunately there is a bug and the values are copied over instead of copying the pointer value! This is the correct behaviour if we're using a string, but not when it's a *string.
This is a pretty crucial feature. I don't know the go-yaml code base, but if someone could point me in the right direction, I would like to try to patch this. Obviously, I'd prefer to have help though. :)
YAML has this excellent anchor/reference syntax to identify two parts of the YAML syntax that refer to the same element. This maps perfectly to a language that has pointers! Unfortunately there is a bug and the values are copied over instead of copying the pointer value! This is the correct behaviour if we're using a
string, but not when it's a*string.Here is some reproducing code:
Sample output is:
This is a pretty crucial feature. I don't know the go-yaml code base, but if someone could point me in the right direction, I would like to try to patch this. Obviously, I'd prefer to have help though. :)
Thanks!