Skip to content

Remove read-only files on Windows #13

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 7 commits into from
Mar 18, 2020
Merged

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Mar 17, 2020

Hi!

When removing read-only files (os.unlink) on Windows, the current behavior is raise an exception. To fix this situation, we need to add write permission to that file.

Related issue: conan-io/conan#6676

We should release a new tag after this PR, and of course, release it on pypi.org (automatic operation related to current version).

Also, Conan will require a new patch version, because we are using a specific version for patch-ng there: https://github.com/conan-io/conan/blob/1.23.0/conans/requirements.txt#L6

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

@jgsogo jgsogo left a comment

Choose a reason for hiding this comment

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

I haven't tested it using Windows (it was the original issue), but if the triagge-man says it works, go ahead!

@czoido
Copy link

czoido commented Mar 18, 2020

Yes, I tested it under Windows overriding the patch-ng version in Conan with 1.17.3 and the example script from the issue works fine.

@uilianries
Copy link
Member Author

Indeed is terrible testing it, you need to install, change Conan's requirements and run Conan.

@uilianries uilianries merged commit 007bdea into master Mar 18, 2020
@uilianries uilianries deleted the hotfix/windows-backup-remove branch March 18, 2020 12:46
@jgsogo jgsogo added this to the 1.17.4 milestone Mar 18, 2020
@uilianries uilianries mentioned this pull request Mar 18, 2020
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.

3 participants