Skip to content

Commit

Permalink
Update src/libstore/remote-store.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hensing <[email protected]>
  • Loading branch information
Ericson2314 and roberth authored Sep 7, 2023
1 parent 4926ee8 commit 7bef7a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstore/remote-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ void RemoteStore::ConnectionHandle::processStderr(Sink * sink, Source * source,
try {
std::rethrow_exception(ex);
} catch (const Error & e) {
// Ugly backwards compatibility hack.
// Nix versions before #4628 did not have an adequate behavior for reporting that the derivation format was upgraded.
// To avoid having to add compatibility logic in many places, we expect to catch almost all occurrences of the
// old incomprehensible error here, so that we can explain to users what's going on when their daemon is
// older than #4628 (2023).
if (experimentalFeatureSettings.isEnabled(Xp::DynamicDerivations) &&
GET_PROTOCOL_MINOR(handle->daemonVersion) <= 35)
{
Expand Down

0 comments on commit 7bef7a6

Please sign in to comment.