Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle zip files containing symlinks #10675

Merged
merged 1 commit into from May 15, 2024
Merged

Conversation

edolstra
Copy link
Member

@edolstra edolstra commented May 9, 2024

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 labels May 9, 2024
@edolstra edolstra added backport 2.21-maintenance Automatically creates a PR against the branch backport 2.22-maintenance Automatically creates a PR against the branch labels May 9, 2024
@edolstra edolstra merged commit 3026613 into NixOS:master May 15, 2024
11 checks passed
@edolstra edolstra deleted the zip-symlinks branch May 15, 2024 20:07
Copy link

Successfully created backport PR for 2.21-maintenance:

Copy link

Successfully created backport PR for 2.22-maintenance:

@nixos-discourse
Copy link

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
backport 2.21-maintenance Automatically creates a PR against the branch backport 2.22-maintenance Automatically creates a PR against the branch fetching Networking with the outside (non-Nix) world 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