Commit dc76f74
authored
Delete marker file before fetching an external repository (#14323)
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 #8993.
Closes #14302.
PiperOrigin-RevId: 4121017561 parent f948989 commit dc76f74
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