modules: Remove extended edition check

With WebP support now in the standard Hugo binary, this warning has too many false positives.

Fixes #14284
This commit is contained in:
Bjørn Erik Pedersen
2025-12-21 13:45:12 +01:00
parent 385d1a1342
commit a94a941fe3
+4 -9
View File
@@ -369,21 +369,16 @@ func (v HugoVersion) String() string {
// Hugo binary.
func (v HugoVersion) IsValid() bool {
current := hugo.CurrentVersion.Version()
if v.Extended && !hugo.IsExtended {
if v.Min != "" && current.Compare(v.Min) > 0 {
return false
}
isValid := true
if v.Min != "" && current.Compare(v.Min) > 0 {
isValid = false
}
if v.Max != "" && current.Compare(v.Max) < 0 {
isValid = false
return false
}
return isValid
return true
}
type Import struct {