tilt-dev / tilt-dev/tilt

Extension cache spuriously has all files deleted

Open
#5,874 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.