Skip to content

Factor out NarCache from RemoteFSAccessor#15040

Merged
Ericson2314 merged 2 commits intomasterfrom
factor-out-nar-cache-0
Jan 26, 2026
Merged

Factor out NarCache from RemoteFSAccessor#15040
Ericson2314 merged 2 commits intomasterfrom
factor-out-nar-cache-0

Conversation

@Ericson2314
Copy link
Member

Motivation

This is an alternative to #14997

Context

Both commits are pure refactors. No behavior is changed by this pull request.

It doesn't quite do everything that will be needed for the feature that @edolstra is trying to implement: In particular, NarCache, just like RemoteFSAccessor, will use an unbounded amount of memory. But I will fix that next. I just wanted to PR this first to get the easy parts / code motion out of the way.


Add 👍 to pull requests you find important.

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

edolstra and others added 2 commits January 21, 2026 19:15
Use

```
git show --color-moved --patience --color-moved-ws=ignore-all-space
```

to review and see that this is mostly code motion.

Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
We had a minor combinatorial explosion of ways to do things. We can get
rid of those by just having the caller call `parseNarListing` intead.
@Ericson2314 Ericson2314 marked this pull request as ready for review January 22, 2026 00:41
@Ericson2314 Ericson2314 requested a review from edolstra as a code owner January 22, 2026 00:41
@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Jan 22, 2026
@Ericson2314 Ericson2314 added this pull request to the merge queue Jan 26, 2026
Merged via the queue into master with commit b190548 Jan 26, 2026
18 checks passed
@Ericson2314 Ericson2314 deleted the factor-out-nar-cache-0 branch January 26, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants