mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Always send the realisations as JSON
Align all the worker protocol with `buildDerivation` which inlines the realisations as one opaque json blob. That way we don’t have to bother changing the remote store protocol when the definition of `Realisation` changes, as long as we keep the json backwards-compatible
This commit is contained in:
parent
7234cf39be
commit
a8416866cf
3 changed files with 36 additions and 14 deletions
|
@ -9,7 +9,7 @@ namespace nix {
|
|||
#define WORKER_MAGIC_1 0x6e697863
|
||||
#define WORKER_MAGIC_2 0x6478696f
|
||||
|
||||
#define PROTOCOL_VERSION (1 << 8 | 30)
|
||||
#define PROTOCOL_VERSION (1 << 8 | 31)
|
||||
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
|
||||
#define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue