-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Docker: set cwd explicitly #8191
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
Conversation
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.
Seems reasonable :)
Test failure is just a command check that changed, seems safe still 👍 |
@@ -102,7 +102,7 @@ def __init__( | |||
): | |||
self.command = command | |||
self.shell = shell | |||
self.cwd = cwd or os.getcwd() | |||
self.cwd = cwd or '$HOME' |
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.
I wonder if we're depending on the old default somewhere... hopefully not.
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.
If we were, it would have been an error on our builders at least p:, we are expanding that var for people that aren't using docker.
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.
greped for .run(
, we are setting the cwd explicitly on all of them. (.org and .com)
We should make this the default in
readthedocs.org/readthedocs/doc_builder/environments.py
Line 105 in 611d35c