Skip to content

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

Merged
merged 3 commits into from
May 18, 2021
Merged

Docker: set cwd explicitly #8191

merged 3 commits into from
May 18, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented May 18, 2021

We should make this the default in

self.cwd = cwd or os.getcwd()
, but first want to test if this works :)

@stsewd stsewd added the PR: hotfix Pull request applied as hotfix to release label May 18, 2021
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable :)

@ericholscher
Copy link
Member

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'
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member Author

@stsewd stsewd May 18, 2021

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)

@stsewd stsewd merged commit 077aad5 into master May 18, 2021
@stsewd stsewd deleted the set-cwd branch May 18, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: hotfix Pull request applied as hotfix to release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants