Skip to content

Commit

Permalink
Allow combination of bind mounts and 'rebuild' watches
Browse files Browse the repository at this point in the history
Signed-off-by: Remco Kranenburg <[email protected]>
  • Loading branch information
Remco Kranenburg authored and ndeloof committed Sep 4, 2024
1 parent d658fec commit e6ef862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje

var paths, pathLogs []string
for _, trigger := range config.Watch {
if checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) {
if trigger.Action != types.WatchActionRebuild && checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) {
logrus.Warnf("path '%s' also declared by a bind mount volume, this path won't be monitored!\n", trigger.Path)
continue
} else {
Expand Down

0 comments on commit e6ef862

Please sign in to comment.