-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
don't export GIT_DIR
#8318
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
don't export GIT_DIR
#8318
Conversation
Hi @ruro and thanks for your PR. I haven't tested the code locally yet (*), but it seems there are 16 tests failing after this change. Can you take a look into that first? (*) a good test would be to build |
Sorry for the delay. I was really busy last week. Also, I had some issues with installing the Managing the different environment variables "properly" is kind of a huge pain with the current readthedocs architecture. Environment variables are stored inside the So, after spending a lot of time trying to fix this "properly", I decided to try just removing the I've also built the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we always set the cwd to self.working_dir
readthedocs.org/readthedocs/vcs_support/base.py
Lines 101 to 104 in babbdf0
kwargs.update({ | |
'cwd': self.working_dir, | |
'shell': False, | |
}) |
So it makes sense to just remove that env var 👍
I do worry that this might break things -- but let's try it and see if something else blows up :/ We might end up reverting pretty quickly, but it does seem like it isn't needed. I imagine some users could be depending on this somehow though :/ |
I think, that prior to #8263, these environment variables weren't even visible in the step that ran the users |
I'm guessing this is actually breaking from |
See #8288 for more info. Fixes #8288.