Modifying tox_root
does not propagate to dependent fields.
#2933
Labels
enhancement
help:wanted
Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
Issue
Changing the value of
tox_root
does not propagate to fields whose default value also depends ontox_root
(i.ework_dir
,temp_dir
,env_dir
, etc...).This reproducible in tox
4.4.6
and in the latest commit (which is 177a227 at time of writing) when trying to modifytox_root
using the CLI interface (e.gtox --root ~
).I assume this would also be the case when using a plugin to modify tox_root, but the following (using an approach based on this discussion) doesn't even change the value of
tox_root
, so I assume thattox_root
might be getting cached before this hook can run:Environment
Provide at least:
pip list
of the host Python wheretox
is installed:Output of running tox
Provide the output of
tox -rvv
:Minimal example
If possible, provide a minimal reproducer for the issue:
Reproduce minimal tox project
Where
Run
tox -qq --root foo
Expected Output:
Actual Output:
Miscelleanous
--workdir
functions as expected. With the same setup as above runningtox -qq --workdir foo/.tox
does correctly propagate the changed workdir to dependent config values:The text was updated successfully, but these errors were encountered: