tilt icon indicating copy to clipboard operation
tilt copied to clipboard

sync an entire dir

Open nicks opened this issue 3 years ago • 1 comments

Currently, live_update watches files and syncs only what's changed.

Pras Velagapudi writes:

I'd like to

  • manually trigger my cmake build (currently in a separate local_resource)
  • wait until it completes successfully
  • sync(...) all the built files

I think it's a super common pattern when using external build systems like CMake and bazel, since you don't want to trigger a sync directly off watching the build output directory.

We may not need to build this directly into tilt. you might be able to hack it in with something like:

local_resource(
  name='sync-dir', 
  cmd="""
POD=...
kubectl cp ./build $POD:/dest/build
""",
  deps=['./touch-file'])

where you should be able to get the pod from tilt get liveupdate. We could package this up as an extension

nicks avatar Feb 16 '22 19:02 nicks

Or this!

landism avatar Feb 16 '22 19:02 landism