diff --git a/internal/modsdir/manifest.go b/internal/modsdir/manifest.go index 651064eff..148aaf72b 100644 --- a/internal/modsdir/manifest.go +++ b/internal/modsdir/manifest.go @@ -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)