Skip to content

Clean up default workspace directory#574

Merged
kytrinyx merged 3 commits intonextercismfrom
do-not-clobber-workspace
Jun 22, 2018
Merged

Clean up default workspace directory#574
kytrinyx merged 3 commits intonextercismfrom
do-not-clobber-workspace

Conversation

@kytrinyx
Copy link
Member

@kytrinyx kytrinyx commented Jun 22, 2018

While testing the alpha-8 build we came across three issues with the default workspace directory:

  • the download would blow up if you happened to configure the workspace to the same location as the binary
  • on windows using the binary name for the workspace directory turned out weird because of the .exe suffix
  • while I thought we were creating the workspace directory in the home directory, it turns out we were creating it in the current directory, because cfg.Home was empty

This is still a hacky solution just to unlock some beta testing, I will do proper testing and cleanup when solving the workspace issues properly as described in #542

Merging as soon as the tests go green.

/cc @nywilken

Katrina Owen added 3 commits June 22, 2018 16:49
Don't try to create the workspace directory on top of the binary, if the
binary happens to be downloaded to the default workspace directory.
The default config had an empty string as Home, this writes Home first, so that
the workspace goes there instead of in the current directory.
@kytrinyx kytrinyx merged commit 29544e6 into nextercism Jun 22, 2018
@kytrinyx kytrinyx deleted the do-not-clobber-workspace branch June 22, 2018 23:01
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.

1 participant