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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copyPathToStore(): Preserve symlinks (backport #12448) #12452

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 11, 2025

Motivation

E.g. in a derivation attribute foo = ./bar, if ./bar is a symlink, we should copy the symlink to the store, not its target. This restores the behaviour of Nix <= 2.19.

Context


Add 👍 to pull requests you find important.

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


This is an automatic backport of pull request #12448 done by [Mergify](https://mergify.com).

E.g. in a derivation attribute `foo = ./bar`, if ./bar is a symlink,
we should copy the symlink to the store, not its target. This restores
the behaviour of Nix <= 2.19.

(cherry picked from commit 26b87e7)
@mergify mergify bot requested a review from edolstra as a code owner February 11, 2025 21:51
@mergify mergify bot added automatic backport This PR is a backport produced by automation (does not trigger backporting) merge-queue labels Feb 11, 2025
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Feb 11, 2025
@edolstra edolstra enabled auto-merge February 11, 2025 21:52
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edolstra wait, why did you remove the test?

@Ericson2314 Ericson2314 disabled auto-merge February 12, 2025 19:07
mergify bot added a commit that referenced this pull request Feb 12, 2025
@mergify mergify bot merged commit d652513 into 2.25-maintenance Feb 12, 2025
23 checks passed
@mergify mergify bot deleted the mergify/bp/2.25-maintenance/pr-12448 branch February 12, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic backport This PR is a backport produced by automation (does not trigger backporting) merge-queue 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.

2 participants