LunNova · GitHub

@LunNova changed the title fix(libstore): handle root path in RemoteFSAccessor::maybeLstat libstore: handle root path in RemoteFSAccessor::maybeLstat

Mar 8, 2026
RemoteFSAccessor::fetch() crashes when called with the root path.
  $ nix build nixpkgs#hello --store ssh-ng://host
  error: path '/nix/store/' is not in the Nix store
Add path.isRoot() guard like LocalStoreAccessor::maybeLstat
Fixes:  eb643d0  ("`Store::getFSAccessor`: Do not include the store dir")

@LunNova

xokdvium

xokdvium

@LunNova

LunNova marked this pull request as ready for review

March 9, 2026 12:39

@Ericson2314

@LunNova

LunNova deleted the lunnova/fix-nix-store-doesnt-exist-ssh-ng branch

March 9, 2026 15:37

Merged

Merged

This was referenced

Mar 15, 2026

Merged

Merged

brittonr pushed a commit to brittonr/nix that referenced this pull request

Apr 1, 2026
…snt-exist-ssh-ng
libstore: handle root path in RemoteFSAccessor::maybeLstat

Merged

Read the original on github.com ↗