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

Remove old folder for conan install (#5376) #5384

Merged
merged 4 commits into from Jun 28, 2019

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Jun 21, 2019

  • Run rmdir before creating a new temp folder

Changelog: Fix: Remove old folder for conan install (#5376)
Docs: Omit
fixes #5376

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.

- Use current time as folder suffix

Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Replace current time by UUID.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

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

I think it would be better to remove the folder at the beginning if it exists to avoid creating N dirty folders.

@lasote lasote added this to the 1.17 milestone Jun 24, 2019
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

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

I think the test can be easier now. Just write a file after the first call and check after the second that the file is not there anymore.

@jgsogo
Copy link
Contributor

jgsogo commented Jun 24, 2019

And please, @uilianries , change the changelog according to the behavior.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries uilianries changed the title Generate unique folder for conan install (#5376) Remove old folder for conan install (#5376) Jun 24, 2019
@uilianries
Copy link
Member Author

@jgsogo done!

@lasote lasote merged commit 18bbc80 into conan-io:develop Jun 28, 2019
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.

config install with a git repository fails when the temporary directory is not empty
3 participants