Merge pull request #4763 from Ma27/fix-nix-shell-error
Bump version number for `DerivedPath` changes
This commit is contained in:
commit
6d2553ae14
|
@ -263,7 +263,7 @@ static void writeValidPathInfo(
|
||||||
static std::vector<DerivedPath> readDerivedPaths(Store & store, unsigned int clientVersion, Source & from)
|
static std::vector<DerivedPath> readDerivedPaths(Store & store, unsigned int clientVersion, Source & from)
|
||||||
{
|
{
|
||||||
std::vector<DerivedPath> reqs;
|
std::vector<DerivedPath> reqs;
|
||||||
if (GET_PROTOCOL_MINOR(clientVersion) >= 29) {
|
if (GET_PROTOCOL_MINOR(clientVersion) >= 30) {
|
||||||
reqs = worker_proto::read(store, from, Phantom<std::vector<DerivedPath>> {});
|
reqs = worker_proto::read(store, from, Phantom<std::vector<DerivedPath>> {});
|
||||||
} else {
|
} else {
|
||||||
for (auto & s : readStrings<Strings>(from))
|
for (auto & s : readStrings<Strings>(from))
|
||||||
|
|
|
@ -672,7 +672,7 @@ std::optional<const Realisation> RemoteStore::queryRealisation(const DrvOutput &
|
||||||
|
|
||||||
static void writeDerivedPaths(RemoteStore & store, ConnectionHandle & conn, const std::vector<DerivedPath> & reqs)
|
static void writeDerivedPaths(RemoteStore & store, ConnectionHandle & conn, const std::vector<DerivedPath> & reqs)
|
||||||
{
|
{
|
||||||
if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 29) {
|
if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 30) {
|
||||||
worker_proto::write(store, conn->to, reqs);
|
worker_proto::write(store, conn->to, reqs);
|
||||||
} else {
|
} else {
|
||||||
Strings ss;
|
Strings ss;
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace nix {
|
||||||
#define WORKER_MAGIC_1 0x6e697863
|
#define WORKER_MAGIC_1 0x6e697863
|
||||||
#define WORKER_MAGIC_2 0x6478696f
|
#define WORKER_MAGIC_2 0x6478696f
|
||||||
|
|
||||||
#define PROTOCOL_VERSION (1 << 8 | 29)
|
#define PROTOCOL_VERSION (1 << 8 | 30)
|
||||||
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
|
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
|
||||||
#define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)
|
#define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue