shithub: hugo

Download patch

ref: 91e0c2b1feb2a7a1b074784a41249139b2fae975
parent: 4679fbee41d34811edf3adf435611f51107c763b
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Nov 18 18:10:56 EST 2015

Disable render-to-memory on Windows

See #1586

--- a/commands/server.go
+++ b/commands/server.go
@@ -137,6 +137,11 @@
 		renderToDisk = true
 	}
 
+	if !renderToDisk && runtime.GOOS == "windows" {
+		jww.ERROR.Println("Render to memory currently not supported in Windows, see https://github.com/spf13/hugo/issues/1586")
+		renderToDisk = true
+	}
+
 	// Hugo writes the output to memory instead of the disk
 	if !renderToDisk {
 		hugofs.DestinationFS = new(afero.MemMapFs)