-
Notifications
You must be signed in to change notification settings - Fork 697
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 read-only mark on dist-newstyle
when doing cabal clean
on Windows
#10190
Remove read-only mark on dist-newstyle
when doing cabal clean
on Windows
#10190
Conversation
9791f2d
to
0dcc394
Compare
0dcc394
to
b0df28a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
8295a0c
to
3545f2b
Compare
dist-newstyle
when doing cabal clean
on Windows
3545f2b
to
558ce0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I would have never thought deleting files on Windows would be so hard 😂
Are we waiting on something or should the "merge me" label be added now? |
I wanted to add a test before merging. |
558ce0f
to
599def7
Compare
Added test, we can merge |
fe5b2cc
to
802b743
Compare
Retrying once doesn't seem to solve the issue. Should I: |
This is a driveby opinion. Removing the test would be a pity, so not (a). If there's a slight increase in CI spurious failures with the test enabled (I assume, there is, but just sanity checking), it shouldn't be enabled, so not (b). This leaves me at (c): mark the test as skipped and refer to an issue best positioned to explain the problem. |
When I say the test I mean the new test that I have introduced, which just gets a source-repository-package and then cleans. It is mainly interesting in Windows, so skipping it is kind of not very interesting. I wonder if another combinator could be created that specifies that a test is flaky, and accepts it whether it passes or not. If it passes many times hopefully someone will eventually notice that it started passing again and maybe re-enabling it can be done at that point. Or that it specifies the output also for failing and something that says "sometimes it fails, if it fails with this output the it is ok because it is flake, if it fails with another output then there is a different error going on, if it passes then it's fine" |
802b743
to
28b7570
Compare
Depends on #10225 |
FWIW you can put that in the top of the pull request: https://docs.mergify.com/workflow/actions/merge/#pull-request-dependencies |
wow, that rocks! |
b642f7a
to
e4deb94
Compare
Is this still waiting on something? |
9de591b
to
92c1510
Compare
92c1510
to
9d9c239
Compare
ca28ada
to
f5f7bd7
Compare
f5f7bd7
to
5c51c12
Compare
For some reason, perhaps because this package has a custom Setup.hs, Please merge this PR and release it as soon as possible. :) |
@jasagredo, GitHub is complaining about conflicts and Mergify is throwing errors trying to correct them? |
Maybe someone other than the author should manually rebase, if the author is currently busy. |
I considered doing it myself, but since it's Windows I worry that I'd run into things I wouldn't know how to resolve. |
I will rebase and merge this PR. @tomsmeding keep in mind what I mentioned in the description: This is not a silver bullet. Perhaps what was here in the first version was better, namely |
5c51c12
to
a9dc5cf
Compare
I implemented a slightly stronger version (remove read-only mark + force delete the directory). Also when dealing with submodules now. @tomsmeding may you try with the cabal from this branch to see if it works better now, or point me to the package that you are having issues with so that I can play with it myself? |
a9dc5cf
to
82d977a
Compare
Some git files are marked as read-only. To ensure we delete the folders we are supposed to, we first remove the read-only attribute via `CMD.exe`, then we forcibly delete the relevant directory.
@jasagredo No guarantees I'll have time (sorry, have to find a windows machine again), but to increase the chances: is there a cabal windows binary that I can easily download (CI artifacts?) that includes this PR? |
This works beautifully for me! Thanks for fixing (at least for my usecase); looking forward to the release. |
The relevant cabal PR is haskell/cabal#10190 , which is not yet included in any released cabal version. It will be in 3.14, presumably.
The relevant cabal PR is haskell/cabal#10190 , which is not yet included in any released cabal version. It will be in 3.14, presumably.
The relevant cabal PR is haskell/cabal#10190 , which is not yet included in any released cabal version. It will be in 3.14, presumably.
The relevant cabal PR is haskell/cabal#10190 , which is not yet included in any released cabal version. It will be in 3.14, presumably.
Just one commit, the rest are from the base branch #10255. This still doesn't ensure that the directory can be deleted on the first go, but at least a second cabal clean will for sure clean it.
Closes #10182 #6933
Depends-On: #10225
QA
Very simple, just doing
cabal clean
if there is asource-repository-package
The above will work with this patch.