Commit 8cfcacf
committed
WIP: Use repository cache without update if offline
This is a very crude way of doing it, but it works.
I think we need to figure out three things to make this prod worthy:
- determine that we failed to update because of missing network connectivity
- check that the cache is "valid" -- ideally this would involve checking whether it can fulfill the dependency requirements, but I don't think that is really possible. We should validate that there's an actual clone present, though
- how to communicate the fact that we chose an offline version of the cache, maybe simply a warning diagnostic?1 parent e5266bf commit 8cfcacf
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
334 | 343 | | |
335 | 344 | | |
336 | 345 | | |
| |||
0 commit comments