Skip to content

registry: fix symlinked flake registry files broken by convert-end-exes#15314

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:fix-registry-symlink
Feb 21, 2026
Merged

registry: fix symlinked flake registry files broken by convert-end-exes#15314
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:fix-registry-symlink

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 21, 2026

Motivation

This commit reverts to using getFSSourceAccessor() so absolute symlink targets resolve correctly, since makeFSSourceAccessor(path) roots the accessor at path and can't follow symlinks that escape it.

Context


Add 👍 to pull requests you find important.

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

This commit reverts to using `getFSSourceAccessor()` so absolute symlink targets resolve correctly, since `makeFSSourceAccessor(path)` roots the accessor at `path` and can't follow symlinks that escape it.
@amaanq amaanq requested a review from edolstra as a code owner February 21, 2026 17:17
@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 Feb 21, 2026
return {store.requireStoreObjectAccessor(storePath)};
} else {
return SourcePath{makeFSSourceAccessor(path)}.resolveSymlinks();
return SourcePath{getFSSourceAccessor(), CanonPath{path}}.resolveSymlinks();
Copy link
Contributor

Choose a reason for hiding this comment

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

In the changes to the fd *at-based source accessor I debated adding a function that opens an accessor while following symlinks for this purpose. Would be nicer to use that eventually

Copy link
Member

Choose a reason for hiding this comment

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

Yes I want to do try that too. I'll merge this as fixing the bug and testing is priority no. 1 though.

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 21, 2026
Merged via the queue into NixOS:master with commit 761139f Feb 21, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the fix-registry-symlink branch February 21, 2026 20:44
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.

3 participants