-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Section substitution doesn't work in setenv
#3262
Comments
Thanks for the bug report and the reproducer. Both maintainers are currently very limited on engineering time, and also in general we welcome contributions from the user base. This means we won't be able to work on that issue in the near future, but we would be happy to help anybody to land a PR to fix it. |
You are welcome, and thanks for the heads up! FWIW we worked around that by not using the substitution feature in that case for now. I was willing to dig into the issue when I bumped into it, but I was also missing some cycles to work on it, unfortunately :/ |
Issue
setenv
variables are not available when runningcommands
from a tox test environment, if the variables were defined using Substitution for values from other sections.That seems some kind of caching issue, as during some debugging I found that removing this IF statement makes
tox
work as I would expect.I'm providing a small reproducible below.
That reproducible defines 3 environment variables through
setenv
: one directly, and 2 through substitution.Only the variable defined directly is available when running
bash
fromcommands
, while the ones defined through substitution are not available.If we check the output of
tox config
, we can see all of the 3 variables correctly defined. And as I mentioned above, if I remove thatIF
statement, making it always update the variables onenvironment_variables
property call, then all the 3 variables are available when runningbash
.Environment
Provide at least:
Output of
pip list
of the host Python, wheretox
is installedOutput of running tox
Output of
tox -rvv
Minimal example
tox.ini
content:tox run
:tox config
:The text was updated successfully, but these errors were encountered: