Maximilian Bosch
bb1a851bcf
build: also throw hash-mismatch errors if buildMode == bmCheck
...
This actually bit me quite recently in `nixpkgs` because I assumed that
`nix-build --check` would also error out if hashes don't match anymore[1]
and so I wrongly assumed that I couldn't reproduce the mismatch error.
The fix is rather simple, during the output registration a so-called
`delayedException` is instantiated e.g. if a FOD hash-mismatch occurs.
However, in case of `nix-build --check` (or `--rebuild` in case of `nix
build`), the code-path where this exception is thrown will never be
reached.
By adding that check to the if-clause that causes an early exit in case
of `bmCheck`, the issue is gone. Also added a (previously failing)
test-case to demonstrate the problem.
[1] https://github.com/NixOS/nixpkgs/pull/139238 , the underlying issue
was that `nix-prefetch-git` returns different hashes than `fetchgit`
because the latter one fetches submodules by default.
2021-09-27 15:44:39 +02:00
..
2021-07-27 17:06:11 +02:00
2020-04-14 18:45:06 +02:00
2021-08-06 07:38:52 -04:00
2020-03-30 15:30:19 +02:00
2021-07-07 10:48:47 +02:00
2019-12-13 19:05:26 +01:00
2021-01-22 15:58:58 +00:00
2021-07-27 17:06:11 +02:00
2020-12-03 17:55:55 +01:00
2019-06-15 16:36:33 +02:00
2021-02-26 16:32:52 +00:00
2021-02-26 16:32:52 +00:00
2020-08-13 04:07:14 +00:00
2021-02-26 16:32:52 +00:00
2021-06-11 09:12:53 +02:00
2020-12-09 10:45:12 +01:00
2021-06-11 09:12:53 +02:00
2021-06-25 11:17:19 +02:00
2014-08-21 21:50:19 +02:00
2014-07-16 16:02:05 +02:00
2014-08-28 18:57:13 +02:00
2018-10-27 15:41:53 +02:00
2018-10-27 15:41:53 +02:00
2018-10-27 15:41:53 +02:00
2021-07-07 10:48:47 +02:00
2021-07-27 17:06:11 +02:00
2021-07-27 17:06:11 +02:00
2021-02-22 09:11:15 +01:00
2021-06-23 17:36:50 +02:00
2021-03-19 15:20:47 -04:00
2021-07-27 17:06:11 +02:00
2014-02-26 18:59:01 +01:00
2020-05-12 13:56:00 +02:00
2020-05-12 13:56:00 +02:00
2020-09-16 13:53:28 +02:00
2021-07-07 11:30:35 +02:00
2021-07-27 17:06:11 +02:00
2021-07-27 17:06:11 +02:00
2013-11-18 10:21:12 +00:00
2020-05-12 13:56:00 +02:00
2018-02-13 14:26:19 +00:00
2021-07-06 08:41:52 +02:00
2020-06-17 10:26:52 +02:00
2021-09-22 17:25:25 +02:00
2021-07-06 08:43:06 +02:00
2021-08-31 13:17:01 +02:00
2016-03-24 14:45:55 +01:00
2020-07-30 16:38:04 -05:00
2007-09-11 13:32:04 +00:00
2007-08-28 09:21:47 +00:00
2021-09-27 15:44:39 +02:00
2021-09-27 15:44:39 +02:00
2021-09-21 13:19:26 +02:00
2020-08-25 14:06:01 +02:00
2021-07-27 17:06:11 +02:00
2020-07-02 16:13:36 +02:00
2020-07-02 16:13:36 +02:00
2020-07-02 16:13:36 +02:00
2020-07-02 16:13:36 +02:00
2009-03-17 17:11:55 +00:00
2021-03-31 08:30:12 +02:00
2021-06-23 17:37:29 +02:00
2020-10-17 23:34:38 +02:00
2006-07-21 13:21:43 +00:00
2020-12-03 17:55:55 +01:00
2019-07-30 11:27:35 +02:00
2012-09-11 19:14:15 -04:00
2021-07-27 17:06:11 +02:00
2020-09-12 22:08:40 +02:00
2020-08-24 18:54:16 +02:00
2021-07-27 17:06:11 +02:00
2021-08-06 12:36:03 -04:00
2021-07-27 11:17:56 +02:00
2017-11-20 17:50:49 +01:00
2021-01-21 11:02:09 +01:00
2020-08-07 19:51:55 +00:00
2021-07-27 17:06:11 +02:00
2017-11-14 13:27:40 +01:00
2020-12-03 18:09:02 +01:00
2020-11-13 17:50:04 +01:00
2020-11-13 17:50:04 +01:00
2020-07-23 18:26:48 +02:00
2020-11-02 15:50:14 -05:00
2019-06-15 16:36:33 +02:00
2019-10-09 23:35:01 +02:00
2021-07-31 17:25:10 +02:00
2021-07-27 17:06:11 +02:00
2014-02-06 13:51:57 +01:00
2009-03-23 15:16:36 +00:00
2013-11-25 18:47:03 +01:00
2020-01-02 23:56:06 +00:00
2020-07-30 16:38:04 -05:00
2019-06-15 16:36:33 +02:00
2021-02-24 08:22:17 -05:00
2021-07-27 17:06:11 +02:00
2018-01-16 19:23:18 +01:00
2020-12-03 17:55:55 +01:00
2021-03-01 14:00:17 +01:00
2021-09-13 14:29:42 +02:00
2021-07-27 17:06:11 +02:00
2020-10-17 23:34:38 +02:00
2021-03-16 14:20:41 +01:00
2021-07-27 17:06:11 +02:00
2021-07-16 09:48:45 +02:00
2018-01-16 19:23:18 +01:00
2019-11-27 00:05:30 +01:00
2018-02-25 16:40:05 -06:00
2020-04-20 15:27:09 +02:00
2011-08-08 14:08:38 +00:00
2016-04-11 16:20:15 +02:00
2020-10-17 23:34:38 +02:00
2020-05-01 12:17:53 +02:00
2021-07-31 17:25:10 +02:00
2021-03-31 08:30:12 +02:00
2018-04-09 09:36:54 -04:00
2018-01-04 16:58:39 +01:00
2021-01-13 23:32:37 +01:00
2007-08-13 13:15:02 +00:00
2009-03-17 17:11:55 +00:00
2020-09-23 19:09:58 +02:00
2020-12-03 23:22:22 +01:00
2021-06-22 19:15:57 +02:00
2021-06-22 19:45:08 +02:00
2021-07-27 17:06:11 +02:00
2021-06-01 15:09:24 +02:00
2021-07-08 13:53:52 +02:00
2017-07-30 12:32:45 +01:00
2021-07-27 17:06:11 +02:00
2012-12-04 14:47:50 +01:00
2020-09-14 17:19:25 +02:00
2019-10-09 23:34:48 +02:00
2021-04-09 23:13:08 +02:00