Skip to content

Handle zip files containing symlinks - #10675

Merged
edolstra merged 1 commit into
NixOS:masterfrom
edolstra:zip-symlinks
May 15, 2024
Merged

edolstra merged 1 commit into
NixOS:masterfrom
edolstra:zip-symlinks

Conversation

@edolstra

@edolstra edolstra commented May 9, 2024

Copy link
Copy Markdown
Member

Motivation

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 cabee98.

This also adds a test for nix flake prefetch, which didn't have one.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

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 NixOS#10649. This was broken in cabee98.
@github-actions github-actions Bot added with-tests Issues related to testing. PRs with tests have some priority fetching Networking with the outside (non-Nix) world, input locking labels May 9, 2024
@edolstra
edolstra merged commit 3026613 into NixOS:master May 15, 2024
@edolstra
edolstra deleted the zip-symlinks branch May 15, 2024 20:07
@github-actions

Copy link
Copy Markdown

Successfully created backport PR for 2.21-maintenance:

@github-actions

Copy link
Copy Markdown

Successfully created backport PR for 2.22-maintenance:

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-05-15-nix-team-meeting-minutes-146/45491/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NAR hash mismatch on zip file flake inputs only in Nix 2.21.0

3 participants