Commit cf3f48c
Relax
Failing the build eagerly when `Label` is passed a label string referencing an unknown apparent repository name turned out to be too strict and causes failures on invalid, but unused labels: https://buildkite.com/bazel/bazel-bazel-with-bzlmod/builds/667#01841861-3d3a-4b65-91b7-b7083ee6b42b
Instead, fail when a method that requires a valid repository name is called on an invalid `Label` instance.
Closes bazelbuild#16578.
PiperOrigin-RevId: 484232254
Change-Id: Ic64ea5db691f39a20dda47e60e2d6f5436ebca1eLabel repo visibility validation1 parent 07c5c1a commit cf3f48c
File tree
4 files changed
+30
-38
lines changed- src
- main/java/com/google/devtools/build
- lib
- analysis/starlark
- cmdline
- skydoc
- test/java/com/google/devtools/build/lib/starlark
4 files changed
+30
-38
lines changedLines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
| 1007 | + | |
1016 | 1008 | | |
1017 | 1009 | | |
1018 | 1010 | | |
| |||
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
522 | 513 | | |
523 | 514 | | |
524 | 515 | | |
| |||
676 | 667 | | |
677 | 668 | | |
678 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
679 | 676 | | |
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
476 | | - | |
| 477 | + | |
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
| |||
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2874 | 2874 | | |
2875 | 2875 | | |
2876 | 2876 | | |
2877 | | - | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
2878 | 2881 | | |
2879 | | - | |
2880 | | - | |
2881 | | - | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2882 | 2885 | | |
2883 | 2886 | | |
2884 | | - | |
2885 | | - | |
| 2887 | + | |
2886 | 2888 | | |
2887 | | - | |
2888 | | - | |
2889 | | - | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
2890 | 2892 | | |
2891 | 2893 | | |
0 commit comments