Fix ref/relRef regression for relative refs from bundles

Fixes #6952
This commit is contained in:
Bjørn Erik Pedersen
2020-02-28 14:22:05 +01:00
parent 6f48146e75
commit 1746e8a9b2
4 changed files with 31 additions and 6 deletions

View File

@@ -443,7 +443,8 @@ func (s *sitesBuilder) writeFilePairs(folder string, files []filenameContent) *s
// our tests running with the in memory filesystem.
// That file system is backed by a map so not sure how this helps, but some
// randomness in tests doesn't hurt.
s.rnd.Shuffle(len(files), func(i, j int) { files[i], files[j] = files[j], files[i] })
// TODO(bep) this turns out to be more confusing than helpful.
//s.rnd.Shuffle(len(files), func(i, j int) { files[i], files[j] = files[j], files[i] })
for _, fc := range files {
target := folder