Skip to content

Conversation

@Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Sep 22, 2025

Motivation

This is sometimes easier / more performant to implement, and independently it is also a more convenient interface for many callers.

Context

The existing store-wide getFSAccessor is only used for

  • nix why-depends
  • the evaluator

I hope we can get rid of it for those, too, and then we have the option of getting rid of the store-wide method.


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store fetching Networking with the outside (non-Nix) world, input locking labels Sep 22, 2025
@Ericson2314 Ericson2314 force-pushed the per-object-fs-accessor branch 3 times, most recently from cd83dd5 to fb88258 Compare September 22, 2025 19:55
@Ericson2314 Ericson2314 force-pushed the per-object-fs-accessor branch 2 times, most recently from af8dc7f to a1295b2 Compare September 22, 2025 21:02
@edolstra
Copy link
Member

With #14050, the global accessor won't be needed for evaluation anymore either, since every input is mounted separately on top of a MountedSourceAccessor.

@Ericson2314
Copy link
Member Author

Great! And I also have a fix for nix why-depends.

Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

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

Minor nitpicks, otherwise seems ok.

This is sometimes easier / more performant to implement, and
independently it is also a more convenient interface for many callers.

The existing store-wide `getFSAccessor` is only used for

 - `nix why-depends`
 - the evaluator

I hope we can get rid of it for those, too, and then we have the option
of getting rid of the store-wide method.

Co-authored-by: Sergei Zimmerman <[email protected]>
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

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

LGTM

@Ericson2314 Ericson2314 merged commit 19fa132 into master Sep 24, 2025
32 checks passed
@Ericson2314 Ericson2314 deleted the per-object-fs-accessor branch September 24, 2025 21:29
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 new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants