-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
USERPROFILE is not automatically forwarded on Windows #518
Comments
Note that, apart from |
|
IIRC, Tox 1.x used to forward the entire environment by default, but this created issues with reproducing builds (env-dependent builds are really annoying). Then, Tox 2.0 changed this to forward as few things as possible. I remember the port from Tox 1.9 to 2.0+ because I debugged a lot of these hidden dependencies on environment variables (see PR #520 for another example). It makes sense from a testing standpoint, but (in addition to testing) I've been using Tox more and more as a one-liner for "find Python, install deps without affecting the system and run this command"-style automation. In that context, having random stdlib stuff breaking for obscure reasons is less fun :-/ |
I agree that these hidden dependencies should be taken into account and hopefully we caught all of them by now, but I opened an issue asking for help to take a closer look: #539. |
Hi there!
Given the following
tox.ini
:Then, on Windows, this will incorrectly print
~
.If you add a
passenv
section to forwardUSERPROFILE
, then it gives the right output:This prints
C:\Users\...
as you would expect.If I'm not mistaken, I believe
HOME
is forwarded by default on other systems, I would assumeUSERPROFILE
should also be forwarded by default on Windows.I'll gladly work on a patch if you're willing to accept such a contribution!
The text was updated successfully, but these errors were encountered: