tilt
tilt copied to clipboard
sync an entire dir
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
Or this!