Attempt to change the output of module manifest

This commit is contained in:
Steve Burns 2020-01-14 20:42:00 -07:00
parent 01036e7b31
commit 8bc0ef8fdc
1 changed files with 6 additions and 0 deletions

View File

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