Closed squalus closed 10 months ago
Also done in daemon-server-side
https://github.com/haskell-nix/hnix-store/pull/243#issuecomment-1822150182
May I ask you to take a look at #246 and #240? That would help me a lot and I'll deal with the -remote
integration part meanwhile so you don't have to duplicate the work/fixes done there.
Or any of the recent issues marked as good first issue, which I won't do right now so I can focus on unblocking -remote
.
queryPathInfoUncached fails with a "not enough input" message when decoding Metadata that is missing a content address.
nix-daemon encodes a missing content address as an empty string: https://github.com/NixOS/nix/blob/a6b315ae8/src/libstore/content-address.cc#L139
Change the decoding to return Nothing if the caString is empty.
I manually tested this with the following program:
The store path came from
nix build nixpkgs#hello
. Tested with nix 2.13.6.