mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Handle zip files containing symlinks
In streaming mode, libarchive doesn't handle symlinks in zip files
correctly. So write the entire file to disk so libarchive can access
it in random-access mode.
Fixes #10649. This was broken in cabee98152
.
This commit is contained in:
parent
de8c3c034c
commit
9951e14ae0
4 changed files with 26 additions and 1 deletions
6
tests/functional/flakes/prefetch.sh
Normal file
6
tests/functional/flakes/prefetch.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
source common.sh
|
||||
|
||||
# Test symlinks in zip files (#10649).
|
||||
path=$(nix flake prefetch --json file://$(pwd)/tree.zip | jq -r .storePath)
|
||||
[[ $(cat $path/foo) = foo ]]
|
||||
[[ $(readlink $path/bar) = foo ]]
|
Loading…
Add table
Add a link
Reference in a new issue