1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00
nix/tests/functional/dyn-drv
John Ericson 169033001d Simplify handling of statuses for build errors
Instead of passing them around separately, or doing finicky logic in a
try-catch block to recover them, just make `BuildError` always contain a
status, and make it the thrower's responsibility to set it. This is much
more simple and explicit.

Once that change is done, split the `done` functions of `DerivationGoal`
and `DerivationBuildingGoal` into separate success and failure
functions, which ends up being easier to understand and hardly any
duplication.

Also, change the handling of failures in resolved cases to use
`BuildResult::DependencyFailed` and a new message. This is because the
underlying derivation will also get its message printed --- which is
good, because in general the resolved derivation is not unique. One dyn
drv test had to be updated, but CA (and dyn drv) is experimental, so I
do not mind.

Finally, delete `SubstError` because it is unused.
2025-08-27 20:05:06 -04:00
..
build-built-drv.sh Restore dynamic derivations! 2025-05-21 17:31:41 -04:00
common.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
config.nix Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
config.nix.in Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
dep-built-drv-2.sh Restore dynamic derivations! 2025-05-21 17:31:41 -04:00
dep-built-drv.sh Restore dynamic derivations! 2025-05-21 17:31:41 -04:00
eval-outputOf.sh Print value on type error 2024-01-22 08:56:02 -08:00
failing-outer.sh Simplify handling of statuses for build errors 2025-08-27 20:05:06 -04:00
meson.build meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
non-trivial.nix More interesting dynamic derivations example 2025-02-16 18:00:34 -05:00
old-daemon-error-hack.nix Rename to "content-address*ing* derivation" 2025-02-10 01:12:56 -05:00
old-daemon-error-hack.sh Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
recursive-mod-json.nix Format .nix files 2025-01-24 17:04:02 +01:00
recursive-mod-json.sh Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
text-hashed-output.nix Merge pull request #9415 from NixOS/fix-dynamic-derivations 2025-02-16 23:59:39 +01:00
text-hashed-output.sh housekeeping: shellcheck for tests/functional/dyn-drv/text-hashed-output.sh 2024-06-12 17:41:16 -04:00