-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Impossible to merge env files #509
Comments
Hi @AntonyCook - thanks for reporting this. How are you trying to merge env files? |
I just tried this out, and indeed got an error 😱: $ cat 1.env
FOO=1
BAR=2
BAZ=3
$ cat 2.env
FOO=4
QUX=5
$ gomplate -c "merged=merge:./2.env|./1.env" -i '{{ .merged.FOO }}'
Couldn't read datasource 'merged': unexpected data type 'map[string]string' for datasource (type application/x-env); merge: can only merge maps 🤔 this seems nonsensical - a |
(I've taken the liberty to change the title to express that this is, in fact, a bug 😉) |
I've tested this out with equivalent JSON files, and it works, so the bug is specific to how |
Yup, that's exactly what I was getting...glad I'm not going nuts ! Keep up the good work! |
@AntonyCook thanks for the kind words! The bug's fixed, and I'll have it in a release soon! |
Nice one..cheers Dave! I'll hold off my global search and replace :-) |
@AntonyCook v3.3.1 is out now! 😬 |
excellent...tried it out and works a treat...thanks Dave. |
Am I doing something wrong, or is it not (yet) possible to merge x-env files ?
The text was updated successfully, but these errors were encountered: