Commit d3c2c9a
committed
remote: fix queryPathInfoUncached missing content address decoding
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.1 parent f1741e8 commit d3c2c9a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| |||
0 commit comments