forked from lix-project/lix
80d7994f52
The Derivation parser and old ATerm unfortunately leaves few ways to get nice errors when an old version of Nix encounters a new version of the format. The most likely scenario for this to occur is with a new client making a derivation that the old daemon it is communicating with cannot understand. The extensions we just created for dynamic derivation deps will add a version field, solving the problem going forward, but there is still the issue of what to do about old versions of Nix up to now. The solution here is to carefully catch the bad error from the daemon that is likely to indicate this problem, and add some extra context to it. There is another "Ugly backwards compatibility hack" in `remote-store.cc` that also works by transforming an error. Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
15 lines
305 B
Makefile
15 lines
305 B
Makefile
dyn-drv-tests := \
|
|
$(d)/text-hashed-output.sh \
|
|
$(d)/recursive-mod-json.sh \
|
|
$(d)/build-built-drv.sh \
|
|
$(d)/eval-outputOf.sh \
|
|
$(d)/dep-built-drv.sh \
|
|
$(d)/old-daemon-error-hack.sh
|
|
|
|
install-tests-groups += dyn-drv
|
|
|
|
clean-files += \
|
|
$(d)/config.nix
|
|
|
|
test-deps += \
|
|
tests/dyn-drv/config.nix
|