lix/src
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-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libexpr Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libfetchers Tarball trees: Propagate lastModified 2023-08-22 21:51:26 +02:00
libmain Prevent overriding virtual methods that are called in a destructor 2023-08-11 11:58:33 +02:00
libstore Special-case error message to add extra information 2023-09-07 10:39:37 -04:00
libutil Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
nix Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
nix-build Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
nix-channel Factor out nix-defexpr path computation 2023-08-02 12:54:48 -04:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Merge pull request #8735 from obsidiansystems/defexpr 2023-08-11 20:32:03 +02:00
nix-instantiate nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-store add nix-store --query --valid-derivers command 2023-08-24 11:37:24 +02:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00