Skip to content

Commit e6ef862

Browse files
Remco Kranenburgndeloof
authored andcommitted
Allow combination of bind mounts and 'rebuild' watches
Signed-off-by: Remco Kranenburg <[email protected]>
1 parent d658fec commit e6ef862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/watch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje
155155

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

0 commit comments

Comments
 (0)