Make sure we always create the /public folder
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 23 Dec 2021 07:57:28 +0000 (08:57 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 23 Dec 2021 14:09:27 +0000 (15:09 +0100)
commitaee9e11a400ac231eb9e91c005f1fe039b106396
treea1b9f4db23258f7a8402f67afd957835e4720b29
parentbd63c1aa56e05e88b162e9fd19b6d21fbc609df7
Make sure we always create the /public folder

* Before this commit, when you had static files in the root of /content and no /public folder, that folder would not be created unless the /static syncer had already run.
* So, with a common pattern doing `rm -rf public && hugo` would the fail now and then because /static and /content are processed in parallel (unless you have cleanDestinationDir=true)
* This was even worse before commit 0b918e131fe523188b820d1e3fa0b08251abde69 – a frozen build.

Closes #8166
hugolib/filesystems/basefs.go