Skip to content
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

Make sure that ~/.ddev exists very early, fixes #358 #380

Merged
merged 3 commits into from Jul 10, 2017

Conversation

rfay
Copy link
Member

@rfay rfay commented Jul 6, 2017

The Problem:

We have a couple of ways that ~/.ddev might not get created at the right time and it's absolutely essential for both mounts (mysql health) and updatecheck.

The Fix:

Create ~/.ddev in root.go at the very beginning before the updatecheck.

The Test:

rm -r ~/.ddev and then ddev start

This should be tested explicitly on windows.

Automation Overview:

Adds TestCreateGlobalDdev as a test - it changes the $HOME environment variable in order to much with ~/.ddev without breaking the user's system.

Related Issue Link(s):

OP #358

Release/Deployment notes:

@rfay rfay self-assigned this Jul 6, 2017
@rfay rfay requested a review from tannerjfco July 6, 2017 23:59
@rfay rfay force-pushed the 20170706_create_home_ddev branch from 4ed2c6f to 9809ca1 Compare July 7, 2017 00:02
Copy link
Contributor

@beeradb beeradb left a comment

Choose a reason for hiding this comment

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

The functionality here looks great, but it feels like this could really use a test?

Copy link
Contributor

@tannerjfco tannerjfco left a comment

Choose a reason for hiding this comment

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

Tested on Windows, seems to work as advertised. 👍

@rfay rfay force-pushed the 20170706_create_home_ddev branch from 9809ca1 to 87a8dcb Compare July 10, 2017 21:33
@rfay
Copy link
Member Author

rfay commented Jul 10, 2017

Thanks for the coaching on how to get a test in there @beeradb - I think this will do it.

Copy link
Contributor

@beeradb beeradb left a comment

Choose a reason for hiding this comment

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

woohoo! Thanks so much for adding a test, makes me feel much better about this not popping up again.

Reading through the code everything looks good. Approving assuming the pending tests pass.

@rickmanelius rickmanelius modified the milestones: v1.0.0, v0.9.0 Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants