mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +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:
@@ -83,7 +83,7 @@ func New(fs *hugofs.Fs, cfg config.AllProvider) (*Paths, error) {
|
||||
}
|
||||
|
||||
func (p *Paths) AllModules() modules.Modules {
|
||||
return p.Cfg.GetConfigSection("activeModules").(modules.Modules)
|
||||
return p.Cfg.GetConfigSection("allModules").(modules.Modules)
|
||||
}
|
||||
|
||||
// GetBasePath returns any path element in baseURL if needed.
|
||||
|
Reference in New Issue
Block a user