-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
build-dotnet-module: reintroduce tmpdir fix #338377
base: master
Are you sure you want to change the base?
Conversation
No need for `chmod`. `rm -rf DIR` succeeds when: - Some contents of DIR are not writable - DIR itself is not writable
a698256
to
8c09ea9
Compare
Useful for debugging.
8c09ea9
to
6529368
Compare
I didn't intentionally remove it, I just replaced all of fetch-deps with the one from dotnet VMR. Sorry about that. |
To me this sounds like |
The current Nix version 2.18 indeed sets |
@@ -1,7 +1,14 @@ | |||
set -e | |||
|
|||
tmp=$(mktemp -d) | |||
trap 'chmod -R +w "$tmp" && rm -fr "$tmp"' EXIT |
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.
If I cp -r /nix/store/[some package] foo && rm -rf foo
, I get
rm: cannot remove 'foo/[...]': Permission denied
I believe it's when a file is in a readonly directory?
can we add a comment to that effect? |
Reintroduce the fix from #209357 which was deleted in #327651.
@corngood, was there a reason for deleting this?