GitHub
04/29/2026, 9:27 PMmeltano.yml, we expect the following output from `meltano invoke pyjokes:joke`:
2022-12-08T20:19:15.638460Z [info ] Environment 'dev' is active
usage: pyjoke [-h] [-c {neutral,chuck,all,twister}] [-l {en,de,es,gl,eu,it}]
pyjoke: error: unrecognized arguments: STACK=1-2-3-4-5, CHAIN1=1, CHAIN2=1-2, CHAIN3=1-2-3, CHAIN4=1-2-3-4, CHAIN5=1-2-3-4-5, LEVEL=5
Instead we get the following:
2022-12-08T20:19:15.638460Z [info ] Environment 'dev' is active
usage: pyjoke [-h] [-c {neutral,chuck,all,twister}] [-l {en,de,es,gl,eu,it}]
pyjoke: error: unrecognized arguments: STACK=1-3-4-5, CHAIN1=1, CHAIN2=${CHAIN1}-2, CHAIN3=-2-3, CHAIN4=-2-3-4, CHAIN5=-2-3-4-5, LEVEL=5
Env var expansion in the top-level env field in meltano.yml normally works, as it is used within the env precedence integration test.
I have confirmed that this is not a new issue as of Meltano 2.11.0 - it also affects Meltano 2.10.0, and Meltano 2.9.0. I did not test further.
I am not sure exactly what fields are affected, aside from the args field of plugin commands.
Running with --no-environment does not resolve the issue. We still see CHAIN2=${CHAIN1}-2 in the output.
As with most other env var related issues, I would recommend against prioritizing a fix for this until the Meltano manifest feature has been implemented:
• #6876
Code
No response
meltano/meltanoGitHub
04/29/2026, 9:27 PM