From 8bc0ef8fdc6f29ee8a3890404fe9c48d6746c7f2 Mon Sep 17 00:00:00 2001 From: Steve Burns Date: Tue, 14 Jan 2020 20:42:00 -0700 Subject: [PATCH] Attempt to change the output of module manifest --- internal/modsdir/manifest.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/modsdir/manifest.go b/internal/modsdir/manifest.go index 36f6c033f8..8372f4384f 100644 --- a/internal/modsdir/manifest.go +++ b/internal/modsdir/manifest.go @@ -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) }