mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Fix it so disable a module does not disable transitive dependency required by others
The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`. Fixes #11376
This commit is contained in:
@@ -40,9 +40,6 @@ type Module interface {
|
||||
// Directory holding files for this module.
|
||||
Dir() string
|
||||
|
||||
// This module is disabled.
|
||||
Disabled() bool
|
||||
|
||||
// Returns whether this is a Go Module.
|
||||
IsGoMod() bool
|
||||
|
||||
@@ -81,7 +78,6 @@ type moduleAdapter struct {
|
||||
dir string
|
||||
version string
|
||||
vendor bool
|
||||
disabled bool
|
||||
projectMod bool
|
||||
owner Module
|
||||
|
||||
@@ -115,10 +111,6 @@ func (m *moduleAdapter) Dir() string {
|
||||
return m.gomod.Dir
|
||||
}
|
||||
|
||||
func (m *moduleAdapter) Disabled() bool {
|
||||
return m.disabled
|
||||
}
|
||||
|
||||
func (m *moduleAdapter) IsGoMod() bool {
|
||||
return m.gomod != nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user