Skip to content
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

Decoding properties files and ignoring environment variables resolution #1127

Closed
embee1981 opened this issue Feb 28, 2022 · 3 comments
Closed
Labels

Comments

@embee1981
Copy link

Is it possible when decoding properties files to yaml using v4.21.x to ignore ${} usage and just output as is?

e.g.
$ echo "the=${myenvnonexisting} meows" | yq -p=props | cat
the: meows

when I'm expecting

the: ${mynenvnonexisting} meows

I've some property files that I'd like to convert over using the new decoding feature but I can't work out how to defer trying to resolve potential environment variable substitution.

@mikefarah
Copy link
Owner

Ah yep - I hadn't noticed that the properties parser lib I'm using automatically interpolates those properties - will fix in the next release by turning that off (and forcing usage of yq's envsubst to interpolate)

@embee1981
Copy link
Author

Thanks Mike :-)

@mikefarah
Copy link
Owner

Fixed in 4.22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants