mirror of
https://github.com/docker/compose.git
synced 2025-07-26 07:04:32 +02:00
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:
parent
9c60fe67df
commit
d2b9456137
@ -294,7 +294,7 @@ func maybeFileEvent(trigger types.Trigger, hostPath string, ignore watch.PathMat
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// always use Unix-style paths for inside the container
|
// 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{
|
return &fileEvent{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user