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
This one surprised me. Apparently an unquoted y is a boolean value in YAML 1.1 (see go-yaml/yaml#214 for more discussion), so, in this case, the YAML is parsed as map[surrogate-keys:[x true z]] which doesn't fit in a StringSlice.
This should fail with a better error during parsing though, so I'll update the title and mark as a bug.
jszwedko
changed the title
Sourcing from yaml introduces strange behaviorx
YAML with a sequence containing varying types causes parse failure, but does not return error
Feb 12, 2018
Hiya! There's a known issue with the current implementation of the CLI, where altsrc is generally clunky and poorly documented. My current idea is that I'm going to move all of the altsrc functionality into the main package in some way, and that's how all of the "altsrc is weird and different???" issues people are having will get resolved. I'm tracking that work here => #833
For some odd reason, this code fails depending on the content of the yaml file.
Code:
yaml file that breaks the app:
yaml file that works:
The text was updated successfully, but these errors were encountered: