mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 07:16:17 +02:00
9951e14ae0
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
.
6 lines
196 B
Bash
6 lines
196 B
Bash
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 ]]
|