Managing the Cache
GitHub repositories are cached locally to avoid re-downloading on every apply. repoverlay provides commands to manage this cache.
Viewing cached repositories
Section titled “Viewing cached repositories”repoverlay cache listCache location
Section titled “Cache location”To see where the cache is stored:
repoverlay cache pathThe default location is ~/.cache/repoverlay/github/owner/repo/.
Clearing the cache
Section titled “Clearing the cache”Remove all cached repositories:
repoverlay cache clearRemove a specific cached repository:
repoverlay cache remove owner/repoHow caching works
Section titled “How caching works”- GitHub repos are shallow cloned to minimize disk usage
- Caches are updated automatically during
repoverlay update - Cache metadata tracks the commit hash and last update time
- Changing
--reffetches the new ref into the existing cache