You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a {temp_dir} in env commands is inconvenient due to the fact the directory expanded by the variable does not exist. Also, the documentation does state that it's a directory to put temporary files, but doesn't say it should be created manually. I'm not sure whether it is an expected behavior, but the directory was existing tox 3.x, so the issue appeared in tox 4.
Current workaround is to add mkdir to allowlist_externals and add mkdir --parents {temp_dir} to commands or commands_pre.
By the way: the documentation states that temp_dir defaults to {tox_root}/.temp, while my testing showed the subdirectory is named .tmp, not .temp.
Environment
OS: Ubuntu 22.04.1 LTS (jammy)
pip list of the host Python where tox is installed:
Issue
Using a
{temp_dir}
in env commands is inconvenient due to the fact the directory expanded by the variable does not exist. Also, the documentation does state that it's a directory to put temporary files, but doesn't say it should be created manually. I'm not sure whether it is an expected behavior, but the directory was existing tox 3.x, so the issue appeared in tox 4.Current workaround is to add
mkdir
toallowlist_externals
and addmkdir --parents {temp_dir}
tocommands
orcommands_pre
.By the way: the documentation states that
temp_dir
defaults to{tox_root}/.temp
, while my testing showed the subdirectory is named.tmp
, not.temp
.Environment
Ubuntu 22.04.1 LTS (jammy)
pip list
of the host Python wheretox
is installed:Output of running tox
Provide the output of
tox -rvv
:Minimal example
Simple
tox.ini
file allowing to recreate the problem:The text was updated successfully, but these errors were encountered: