Extension cache spuriously has all files deleted
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Expected Behavior
- Tilt extensions are synced transparently without issue
Current Behavior
- Possible for all the files in the extension cache (
$XDG_DATA_HOME/tilt-dev/tilt_modules) to be deleted during sync
Steps to Reproduce
No consistent repro - report came from a user using Tilt normally.
Context
The tilt_modules folder still had the Git metadata (.git/)` but all the source files were deleted. I imagine it tried to remove all files for a sync and got stuck in a weird state, where Git is up-to-date, but the repo working state is dirty.
The user also only has a single ExtensionRepo (the default tilt-dev/tilt-extensions).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the extension sync path that operates on $XDG_DATA_HOME/tilt-dev/tilt_modules, then inspect how it handles the repository when only .git/ remains. Reproduce or instrument the sync if possible, and consider the issue done when syncing cannot leave all extension source files deleted while the Git metadata remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100