-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check potential output format issue with output formats in hugo server on GitHub action #11089
Comments
Hey @bep, it took some time but I think I was able to reproduce on a slimmed and public repository. Clean build:
Glitched build
I can also successfully reproduce locally, by simply executing the below command several times
My intuition is telling me that it could be related to my configs:
When I delete I just did some tests locally (tried to break it starting from 110, and from my tests this glitches was introduced as part of 112
|
@jmichelgarcia OK, I can reproduce this too (but very rarely), thanks a lot, much appreciated. |
This bash script fails every time: #!/bin/bash
for i in {1..100}
do
rm -rf public
hugo --quiet --config hugo.toml --configDir config --disableKinds=taxonomy,term,rss,sitemap,robotsTXT --noBuildLock --noChmod --noTimes --watch=false --enableGitInfo=false -e development
size=`tree public | wc -l`
expect=57
if [ $size -ne $expect ]
then
echo "[$i] Expected $expect lines, got $size"
exit 1
fi
done |
OK, the problems seem to be an ordering/merge issue with [languages]
[languages.en]
disableKinds = ["taxonomy", "term", "rss", "sitemap", "robotsTXT"]
title = "Documentation"
languageName = "English"
languageCode = "en"
staticDir = "static"
contentDir = "content/en"
[languages.fr]
title = "Documentation"
languageName = "French"
languageCode = "fr"
contentDir = "content/fr"
staticDir = "static_fr"
disableKinds = [
"page",
"home",
"section",
"taxonomy",
"taxonomyTerm",
"rss",
"sitemap",
"robotsTXT",
"404",
] |
Fixes gohugoio#11089 ~/d/g/g/hugo ❯❯❯ git resetf fix/myseryconfigissue-11089 ✭ ✱
Thanks @bep. Really helpful. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
https://discourse.gohugo.io/t/hugo-serve-randomly-fails-to-load-pages-and-alias/44771/8
This isn't obvious to me, but I will try to read through the code to see what may happen. If someone have a project that somehow reproduces this reliably, please shout.
The text was updated successfully, but these errors were encountered: