append unix-style relative path when computing container target path

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2024-09-20 15:51:17 +02:00 committed by Guillaume Lours
parent 9c60fe67df
commit d2b9456137
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ func maybeFileEvent(trigger types.Trigger, hostPath string, ignore watch.PathMat
return nil
}
// always use Unix-style paths for inside the container
containerPath = path.Join(trigger.Target, rel)
containerPath = path.Join(trigger.Target, filepath.ToSlash(rel))
}
return &fileEvent{