-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variable expansion in string context triggers JSON parser #132
Labels
Comments
blakerouse
added a commit
to blakerouse/go-ucfg
that referenced
this issue
Jan 16, 2020
blakerouse
added a commit
to blakerouse/go-ucfg
that referenced
this issue
Jan 17, 2020
blakerouse
added a commit
that referenced
this issue
Jan 17, 2020
…139) * Fix parsing of environment variables to prevent object parsing. #132 * Add validation of config to prevent Object true and Array false. Add more tests. * Move parse from interal to importable module. Rename ParseConfig to just Config, so import is parse.Config. Add parse.Config to return of resolvers. * Add test for parse config validation. * Add changelog entry.
Fixed in #139 |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When an environment variable is expanded inside a string:
The parser will in turn try to parse the variable contents as if they were JSON values. For example when
MY_VAR
is{user}
, the parser will complain that the input is malformed:which doesn't happen when the same value is hardcoded:
parses correctly.
The text was updated successfully, but these errors were encountered: