1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00
nix/src
Maximilian Bosch 19720d733f nix3-build: show all FOD errors with --keep-going
Basically I'd expect the same behavior as with `nix-build`, i.e.
with `--keep-going` the hash-mismatch error of each failing
fixed-output derivation is shown.

The approach is derived from `Store::buildPaths` (`entry-point.cc`):
instead of throwing the first build-result, check if there are any build
errors and if so, display all of them and throw after that.

Unfortunately, the BuildResult struct doesn't have an `ErrorInfo`
(there's a FIXME for that at least), so I have to construct my own here.
This is a rather cheap bugfix and I decided against touching too many
parts of libstore for that (also I don't know if that's in line with the
ongoing refactoring work).

Closes https://git.lix.systems/lix-project/lix/issues/302

Change-Id: I378ab984fa271e6808c6897c45e0f070eb4c6fac
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
2024-05-17 18:48:52 +02:00
..
build-remote Pathlocks Implementation for Windows (#10586) 2024-04-22 15:08:10 +00:00
libcmd nix3-build: show all FOD errors with --keep-going 2024-05-17 18:48:52 +02:00
libexpr Merge pull request #10479 from obsidiansystems/ca-fso-docs 2024-05-15 22:52:53 +02:00
libexpr-c document nix_external_print's printer parameter to be an out parameter 2024-05-16 02:55:38 +02:00
libfetchers Merge pull request #10675 from edolstra/zip-symlinks 2024-05-15 22:07:22 +02:00
libmain Merge pull request #10556 from nix-windows/uds-remote-on-windows 2024-05-02 09:53:00 -04:00
libstore Merge pull request #10479 from obsidiansystems/ca-fso-docs 2024-05-15 22:52:53 +02:00
libstore-c add missing c api parameter names to documentation 2024-05-16 02:55:38 +02:00
libutil Merge pull request #10479 from obsidiansystems/ca-fso-docs 2024-05-15 22:52:53 +02:00
libutil-c C API: Use nix_get_string_callback typedef 2024-04-15 12:05:57 +02:00
nix Merge pull request #10479 from obsidiansystems/ca-fso-docs 2024-05-15 22:52:53 +02:00
nix-build Use std::filesystem::path in more places (#10657) 2024-05-07 22:28:50 +00:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage inline the usage of nix::readDirectory 2024-05-12 17:42:18 +05:30
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Merge InputAccessor into SourceAccessor 2024-05-03 12:14:01 +02:00
nix-instantiate Build a minimized Nix with MinGW 2024-04-17 12:26:10 -04:00
nix-store Use SourcePath in more places 2024-05-06 19:05:42 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00