Ludovic Courtès
8af9a2aa5f
substitute: If a server's nar URL is 404, try the next one(s).
...
If a substitute server advertises in its narinfo, for example, both a
/zstd and a /lzip URL but the /zstd URL is unreachable, try the /lzip
URL.
Fixes <https://issues.guix.gnu.org/63634 >.
* guix/narinfo.scm (narinfo-preferred-uris): New procedure.
(narinfo-best-uri): Rebase on top of it.
* guix/scripts/substitute.scm (download-nar)[try-fetch]: New procedure.
Use 'narinfo-preferred-uris' and 'try-fetch' to attempt all the URLs of
NARINFO.
* tests/substitute.scm (request-substitution): Remove 'parameterize'.
Delete DESTINATION.
("substitute, preferred nar URL is 404, other is 200"): New test.
2023-05-30 00:15:29 +02:00
..
2022-05-18 23:20:21 +02:00
2023-04-02 12:35:30 +02:00
2019-08-28 00:27:14 +02:00
2017-03-16 22:50:14 +01:00
2020-08-29 16:24:17 +02:00
2022-08-28 23:37:28 +02:00
2017-01-26 13:49:56 +01:00
2022-07-13 10:49:40 -04:00
2022-01-10 11:44:29 -05:00
2022-10-22 01:46:55 +02:00
2022-06-04 12:04:23 +02:00
2021-01-16 11:51:03 +00:00
2022-10-22 01:46:55 +02:00
2016-05-04 23:35:55 +02:00
2023-01-30 22:24:27 +01:00
2022-10-22 01:46:55 +02:00
2022-12-20 16:56:03 +01:00
2021-12-18 04:09:47 +01:00
2022-05-30 16:34:39 +02:00
2020-12-21 17:47:35 +01:00
2019-10-23 16:40:17 +02:00
2018-11-12 23:37:13 +01:00
2023-01-09 17:40:54 +01:00
2017-07-03 23:51:23 +02:00
2021-11-17 23:43:14 +01:00
2022-05-22 01:07:52 +02:00
2021-12-18 22:51:55 +01:00
2020-05-20 08:30:35 -04:00
2022-09-17 19:09:27 +02:00
2022-11-11 23:17:42 +01:00
2022-02-14 11:23:08 +01:00
2022-10-17 09:37:27 +02:00
2020-12-09 22:25:17 +01:00
2023-01-02 00:06:51 +01:00
2021-09-28 22:00:47 +02:00
2022-11-11 23:17:42 +01:00
2023-04-07 17:53:37 +02:00
2022-01-16 20:21:27 -08:00
2023-04-21 16:16:38 +02:00
2021-12-22 10:53:19 +01:00
2023-04-21 16:16:38 +02:00
2023-04-28 19:50:36 +02:00
2023-04-21 16:16:38 +02:00
2022-09-04 23:10:10 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-28 19:50:39 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2021-02-22 12:07:45 +01:00
2019-05-18 12:23:31 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 17:09:46 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 17:09:46 +02:00
2020-09-16 16:04:01 +02:00
2022-06-16 23:57:40 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2023-02-26 10:19:36 +01:00
2022-06-15 10:18:34 +02:00
2022-09-20 19:24:31 +02:00
2022-06-04 12:04:24 +02:00
2022-03-06 22:49:46 +01:00
2021-09-18 19:37:45 +02:00
2022-12-26 17:15:06 +01:00
2023-04-07 18:00:08 +02:00
2022-07-08 13:51:34 +01:00
2021-04-12 18:42:22 +02:00
2023-05-06 17:12:45 +02:00
2022-01-06 16:27:30 +01:00
2021-12-23 10:54:00 +01:00
2022-10-22 01:46:55 +02:00
2021-11-16 14:34:28 +01:00
2023-04-07 17:56:07 +02:00
2020-08-25 13:45:27 -04:00
2021-11-18 22:56:10 +01:00
2021-12-22 10:53:19 +01:00
2023-03-17 12:14:14 -04:00
2023-04-19 20:12:28 -04:00
2022-12-12 15:03:05 +01:00
2022-09-29 22:59:48 +02:00
2019-12-10 10:49:42 +01:00
2022-10-22 01:46:55 +02:00
2022-04-29 18:07:17 +02:00
2023-04-30 22:30:49 +02:00
2023-05-05 23:47:48 +02:00
2022-12-27 23:53:42 +01:00
2023-02-19 21:13:23 -05:00
2019-03-24 00:13:53 +01:00
2019-06-14 22:09:38 +02:00
2022-05-18 22:29:54 +02:00
2016-04-03 14:19:09 +02:00
2018-11-12 23:37:13 +01:00
2022-06-26 23:19:14 +02:00
2021-01-31 21:49:58 +01:00
2022-12-10 10:56:48 +01:00
2019-04-10 17:09:47 +02:00
2021-12-05 19:17:41 +01:00
2023-05-18 20:01:32 +02:00
2023-05-30 00:15:29 +02:00
2021-01-21 11:22:08 +01:00
2021-10-26 12:46:27 +02:00
2022-10-22 01:46:55 +02:00
2012-04-19 23:09:55 +02:00
2023-04-19 20:12:58 -04:00
2023-05-04 17:06:44 +02:00
2022-12-13 17:46:39 +01:00
2019-06-14 21:57:39 +02:00
2022-01-05 21:17:58 +01:00
2021-07-14 15:38:03 +02:00
2019-05-07 12:18:44 +02:00
2017-11-17 10:47:49 +01:00