Skip to content

Commit 3278918

Browse files
authored
Fix couldn't start notify trigger in multi-config projects (#6114)
1 parent 56a84aa commit 3278918

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/skaffold/trigger/fsnotify/trigger.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,15 @@ func (t *Trigger) Start(ctx context.Context) (<-chan bool, error) {
9191
continue
9292
}
9393

94-
if err := t.watchFunc(filepath.Join(wd, w, "..."), c, notify.All); err != nil {
94+
// Workspace paths may already have been converted to absolute paths (e.g. in a multi-config project).
95+
var path string
96+
if filepath.IsAbs(w) {
97+
path = w
98+
} else {
99+
path = filepath.Join(wd, w)
100+
}
101+
102+
if err := t.watchFunc(filepath.Join(path, "..."), c, notify.All); err != nil {
95103
return nil, err
96104
}
97105
}

0 commit comments

Comments
 (0)