Uniformity for module manifest dir read/write

This commit is contained in:
Steve Burns 2020-01-14 21:13:36 -07:00
parent 98e612ee50
commit 43b855743b
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ func (m Manifest) WriteSnapshot(w io.Writer) error {
// Ensure Dir is written in a format that can be read by Linux and
// Windows nodes
if record.Dir != "" {
if string(filepath.Separator) != "/" {
record.Dir = filepath.ToSlash(record.Dir)
}
write.Records = append(write.Records, record)