nix-super/tests/dyn-drv
John Ericson 80d7994f52 Special-case error message to add extra information
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>
2023-09-07 10:39:37 -04:00
..
build-built-drv.sh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
common.sh Make tests/dyn-drv test dir 2023-04-19 18:49:50 -04:00
config.nix.in Make tests/dyn-drv test dir 2023-04-19 18:49:50 -04:00
dep-built-drv.sh Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
eval-outputOf.sh add nix-store --query --valid-derivers command 2023-08-24 11:37:24 +02:00
local.mk Special-case error message to add extra information 2023-09-07 10:39:37 -04:00
old-daemon-error-hack.nix Special-case error message to add extra information 2023-09-07 10:39:37 -04:00
old-daemon-error-hack.sh Special-case error message to add extra information 2023-09-07 10:39:37 -04:00
recursive-mod-json.nix Rename a few things in new tests 2023-05-08 08:01:58 -04:00
recursive-mod-json.sh Create outputOf primop. 2023-08-14 09:37:37 -04:00
text-hashed-output.nix Create outputOf primop. 2023-08-14 09:37:37 -04:00
text-hashed-output.sh Rename a few things in new tests 2023-05-08 08:01:58 -04:00