Disable render-to-memory on Windows

See #1586
This commit is contained in:
Bjørn Erik Pedersen 2015-11-18 23:10:56 +01:00
parent 4679fbee41
commit 91e0c2b1fe

View file

@ -137,6 +137,11 @@ func server(cmd *cobra.Command, args []string) {
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)