Commit 3069ac4
Delete marker file before fetching an external repository
Fetching a repository is a long-running operation that can easily be
interrupted. If it is and the marker file exists on disk, a new
evaluation of the RepositoryDelegatorFunction may treat this repository
as valid even though it is in an inconsistent state.
Clearing the marker file before initiating the fetch and only recreating
it after the fetch is complete prevents this scenario.
Fixes bazelbuild#8993.
Closes bazelbuild#14302.
PiperOrigin-RevId: 4121017561 parent 28409cf commit 3069ac4
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
- src/main/java/com/google/devtools/build/lib/rules/repository
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
0 commit comments