`tilt down` hangs when offline due to git pull in extension directory
Expected Behavior
I should be able to run tilt down regardless of my internet connection status.
Current Behavior
When I try to run tilt down while offline, the command gets stuck. It appears to be attempting the following behind the scenes before executing command hooks or proceeding with the normal teardown process:
cd "$LIBRARY_DIR/tilt-dev/tilt_modules/github.com/tilt-dev/tilt-extensions"; git pull
Steps to Reproduce
- Run
tilt upon a Tiltfile that uses extensions (while online) - Disconnect from the internet
- Run
tilt down
Context
Tilt: v0.34.2, built 2025-04-09
System: darwin-arm64
---
Docker
- Host: unix:///var/run/docker.sock
- Server Version: 26.1.5
- API Version: 1.45
- Builder: 2
- Compose Version: v2.33.0
---
Kubernetes
- Env: rancher-desktop
- Context: rancher-desktop
- Cluster Name: rancher-desktop
- Namespace: default
- Container Runtime: docker
- Version: v1.30.11+k3s1
- Cluster Local Registry: none
About Your Use Case
I was just trying to work outside the office, offline. Ideally, tilt down should still work in this scenario without getting blocked by a failed network operation.
hmmm...sorry to hear you're having issues. I was not able to reproduce this problem, given the steps provided.
I used the example go repo - https://github.com/tilt-dev/tilt-example-go/tree/master/3-recommended
Then ran tilt down with the network off:
Loading Tiltfile at: /home/nick/src/tilt-example-go/3-recommended/Tiltfile
# cd /home/nick/.local/share/tilt-dev/tilt_modules/github.com/tilt-dev/tilt-extensions; git pull --ff-only
ssh: Could not resolve hostname github.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Successfully loaded Tiltfile (83.850796ms)
Deleting kubernetes objects:
→ Deployment/example-go
That's basically what i'd expect -- git should fail immediately, tilt will recognize it's ok, and then will continue with the tear down.
Question: do git operations normally hang indefinitely when you're offline?
Thanks @nicks for taking a look. I'll be swamped until next week, but I'll come back to this issue sometimes soon.