tilt-dev / tilt-dev/tilt

Run a command before live_update sync

Open
#6,466 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Describe the Feature You Want

We want the ability to run a command before the live_update sync() calls in order to stop a wrapped child process before syncing files.

Current Behavior

According to the documentation run() must come after sync(). So syncing happens while the process is running.

Why Do You Want This?

Syncing in files while the process is running can cause instability and/or the application could hold file locks. We would like to cleanly stop the (wrapped/child) process -> then sync the files -> then launch the new process. This would be easily done if it were possible to place a run() command before sync() or if docker_build supported a pre_live_update option.

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 tracing the live_update sync() calls and the docker_build handling described in the issue. Determine how a pre-sync command would fit, then verify that the wrapped child process stops before files sync and relaunches afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.