garden icon indicating copy to clipboard operation
garden copied to clipboard

0.13: [FEATURE]: Native support for running arbitrary commands on file change or improved compatibility with tools like `entr`

Open worldofgeese opened this issue 3 years ago • 2 comments

Garden Bonsai (0.13) Bug

Current Behavior

When using 0.12's Dev Mode or Bonsai's Code Synchronization feature with entr, entr reloads when Mutagen has synced one file. If multiple files are specified, entr will only reload on first file sync.

Expected behavior

entr should reload with subsequent file syncs.

If this issue is treated as a feature request, native support for arbitrary actions on file change could be considered.

This is a bug if solving the problem of entr only reloading on first file sync is treated. Prior art exists in our quickstart example for single file actions.

This issue was originally reported by @pepov of Axoflow. @worldofgeese will validate with a reproducible example.

Reproducible example

WIP

Your environment

  • OS: WIP
  • How I'm running Kubernetes: minikube

garden version 0.13.0

worldofgeese avatar Apr 05 '23 18:04 worldofgeese

I don't believe this is a bug in Garden (seems to be more to do with how entr responds to fiel changes), but it is certainly a valid feature request—that we've actually explored—to allow arbitrary command execution post sync.

edvald avatar Apr 05 '23 22:04 edvald

I don't consider this as a bug in Garden either. I'm not sure what would be a good solution here, but I think a manual one-time sync command would be nice in the new interactive mode.

pepov avatar Apr 11 '23 12:04 pepov