- By layus
- `RemoteStoreT`, `RemoteStoreState` from #72
- By Ericson2314
- Reorg, `MonadRemoteStore0`, `MonadRemoteStoreHandshake`,
`PreStoreConfig`, better `greet`
- By ryantrinkle
- Correctly detect when other side has hung up, throws
`RemoteStoreError_Disconnected`
Co-Authored-By: Guillaume Maudoux <layus.on@gmail.com>
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
Co-Authored-By: Ryan Trinkle <ryan@trinkle.org>
nix-daemon encodes the narHash as Base16, not NixBase32:
https://github.com/NixOS/nix/blob/a6b315ae/src/libstore/worker-protocol.cc#L180
Change the narHash decoding step to use Base16.
Add a test that fails on the previous code with the following error:
uncaught exception: ErrorCall
Invalid NixBase32 string
CallStack (from HasCallStack):
Tested with nix 2.13.6.