fetchzip
can produce "mv: Permission denied" errors on certain zip-files
#136030
Labels
fetchzip
can produce "mv: Permission denied" errors on certain zip-files
#136030
Describe the bug
Currently, if you try to run this derivation
You should be seeing something like this:
The reason for this is that the top-level directory of this zip file does not have write permissions, therefore the
mv
command fails:I was able to fix this with the following patch to the
fetchzip
function:To me, this seems like an idempotent change, so it should not hurt any other derivations, while it can correct some of these "unusual" zip files. What do you think? Would this be okay as a PR?
Steps To Reproduce
Steps to reproduce the behavior:
fetchzip
into a file.nix-build
on that fileExpected behavior
I expect the derivation to work.
Screenshots
Additional context
Notify maintainers
@SuperSandro2000 , sorry I dont know who else to ping.
Metadata
The text was updated successfully, but these errors were encountered: