Commit 4cce534
fix(uv): use astral urls for uv primary source, github as secondary (#3746)
For official releases, use the astral.sh mirror as the preferred url for
binary downloads, with github.com as a fallback.
For uv >= 0.11.0, read the checksums directly from the dist-manifest
contents, so the only github.com SPOF is fetching the dist-manifest
itself.
---
It is not infrequent for `github.com` to give a 5xx error on one of the
uv sha256 downloads, leading to a failed build. (The sha256 downloads
cannot be cached by Bazel's repository cache, since we request them
without a checksum.) See
RobotLocomotion/drake#24140 for some examples,
as well as
bazelbuild/bazel-central-registry#8591 (comment)
([log](https://buildkite.com/bazel/bcr-presubmit/builds/33406/canvas?jid=019dd214-ce96-4eeb-b6e8-a720932ed816&tab=output)).
This change limits github as a single point of failure.
---------
Co-authored-by: Richard Levasseur <richardlev@gmail.com>1 parent 098cb29 commit 4cce534
3 files changed
Lines changed: 47 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
383 | 387 | | |
384 | 388 | | |
385 | 389 | | |
| |||
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| 459 | + | |
| 460 | + | |
455 | 461 | | |
456 | 462 | | |
457 | 463 | | |
| |||
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
474 | | - | |
| 480 | + | |
| 481 | + | |
475 | 482 | | |
476 | 483 | | |
477 | 484 | | |
478 | 485 | | |
479 | 486 | | |
480 | 487 | | |
481 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
482 | 500 | | |
483 | 501 | | |
484 | 502 | | |
485 | 503 | | |
486 | 504 | | |
487 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
488 | 510 | | |
489 | | - | |
490 | | - | |
491 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
492 | 522 | | |
493 | 523 | | |
| 524 | + | |
| 525 | + | |
494 | 526 | | |
495 | 527 | | |
496 | | - | |
| 528 | + | |
497 | 529 | | |
498 | 530 | | |
499 | 531 | | |
| |||
502 | 534 | | |
503 | 535 | | |
504 | 536 | | |
505 | | - | |
| 537 | + | |
506 | 538 | | |
507 | 539 | | |
508 | 540 | | |
| |||
522 | 554 | | |
523 | 555 | | |
524 | 556 | | |
525 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
526 | 561 | | |
527 | 562 | | |
528 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
0 commit comments