Codebase list golang-github-spf13-viper / 5f0a660
add yaml y-n issue to the troubleshooting guide Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com> Mark Sagi-Kazar 2 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2020 Please refer to the [wiki](https://github.com/golang/go/wiki/Modules) on how to do that.
2121
2222 **tl;dr* `export GO111MODULE=on`
23
24 ## Unquoted 'y' and 'n' characters get replaced with _true_ and _false_ when reading a YAML file
25
26 This is a YAML 1.1 feature according to [go-yaml/yaml#740](https://github.com/go-yaml/yaml/issues/740).
27
28 Potential solutions are:
29
30 1. Quoting values resolved as boolean
31 1. Upgrading to YAML v3 (for the time being this is possible by passing the `viper_yaml3` tag to your build)