mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-22 11:51:57 +00:00
modules: Print required Hugo version for incompatible modules
This commit is contained in:
parent
63e0a92894
commit
60d954c785
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ func (m ModulesConfig) HasConfigFile() bool {
|
||||||
func (m *ModulesConfig) setActiveMods(logger loggers.Logger) error {
|
func (m *ModulesConfig) setActiveMods(logger loggers.Logger) error {
|
||||||
for _, mod := range m.AllModules {
|
for _, mod := range m.AllModules {
|
||||||
if !mod.Config().HugoVersion.IsValid() {
|
if !mod.Config().HugoVersion.IsValid() {
|
||||||
logger.Warnf(`Module %q is not compatible with this Hugo version; run "hugo mod graph" for more information.`, mod.Path())
|
logger.Warnf(`Module %q is not compatible with this Hugo version: %s; run "hugo mod graph" for more information.`, mod.Path(), mod.Config().HugoVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue