Trigger a "config changed" event on changes to .garden/local-config.yaml #1082
Labels
enhancement
stale
Label that's automatically set by stalebot. Stale issues get closed after 14 days of inactivity.
This is e.g. necessary for when users run a
link
command while Garden is running in watch mode in another process. Currently, the user would need to restart the watch process after running the link command for Garden to pick up the changes.Notes on implementation
The link command updates the
./garden/local-config.yaml
so we'd need watch that file for changes and trigger the `projectCnofig event.The
./garden
directory is excluded from the watcher so we need to handle thelocal-config.yaml
file specifically.Finally, we need to make sure the changes get picked up by the
watcher
instance. The instance is global and does not change even though a new instance of the Garden class is created, so we'd need to update it with the new paths (or reset it).The text was updated successfully, but these errors were encountered: