-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Module version mismatch WARNINGs does not get printed to console #7285
Comments
One plausible implementation: support a new configuration key minimumHugoVersion: 0.70.0 When executing this with e.g. Hugo 0.69.1, the build could bail out right away, saying something along the lines of
|
See https://gohugo.io/hugo-modules/configuration/#module-config-hugoversion Note that we currently do not fail build, but we print a big visible WARNING on version mismatch. The above is especially relevant for themes (or theme components), but can also be set on the main project. |
Thanks for the pointer - that looks much like what I was thinking of! I just tried to see how it looks in practice but didn't notice any output. Here's what I did:
I suppose my modifications to the |
OK, thinking about it, I suspect we added this as a "theme thing". I will check. |
OK, I checked ... it gets logged as a warning, but the warning never gets printed. I assume somethings off with the log level. Hmmm... |
Thanks a lot for the quick turnaround time! |
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. |
Hugo is progressing at an amazing pace and awesome features are added left and right. Of course, people want to benefit from those features and thus upgrade Hugo.
As it happens though, many non-trivial websites are developed by a team. It can happen that one person implements a change to e.g. the layouts which doesn't work unless you use a sufficiently recent Hugo version. Other people on the team may not have gotten around to updating Hugo yet, so their build will fail with a more or less cryptic error message.
Other software (e.g. CMake) permits describing a minimum supported version. If the currently executing version of the software is older than what's described, a useful error message including the information
is printed.
It would be great if Hugo would support the same such that people can start using the latest features without also having to do tech support for fellow colleagues. :-)
The text was updated successfully, but these errors were encountered: