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

fix short_path folders removal #7986

Merged
merged 11 commits into from Nov 23, 2020

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Nov 2, 2020

Changelog: Bugfix: Remove correctly short-paths folders in Windows.
Docs: Omit

Fix #7983

#tags: slow, svn
#revisions: 1

@memsharded memsharded added this to the 1.32 milestone Nov 4, 2020
except OSError as e:
raise ConanException("%s\n\nFolder: %s\n"
"Couldn't remove folder, might be busy or open\n"
"Close any app using it, and retry" % (scm_folder, str(e)))
Copy link
Contributor

Choose a reason for hiding this comment

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

In this message, I'm always missing information about the actual path being removed, the shortened one, which would be the one blocking. I agree with the changes as they are now, but this is something to improve.

Copy link
Member Author

Choose a reason for hiding this comment

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

But the OSError exception should contain the failing path, and the exception is printed too, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Uhm, that's probably right, but I cannot test it outside Windows...

conans/test/assets/genconanfile.py Outdated Show resolved Hide resolved
@memsharded memsharded merged commit 2cab189 into conan-io:develop Nov 23, 2020
@memsharded memsharded deleted the feature/fix_short_path_removal branch November 23, 2020 10:08
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.

[bug] short_paths option leads to creation redundant subdirectories in C:/.conan after conan remove
2 participants