summaryrefslogtreecommitdiffstats
path: root/hugolib/paths/paths.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-23 12:39:24 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-23 18:05:18 +0200
commitdcf425c846dcd6fbb0c05e87342077ab870eb7e1 (patch)
tree603f96feb9bb7a7503d86a4788dc5a6918ba4045 /hugolib/paths/paths.go
parent9a8c84d6000fab3ec6847a330c45bfe24b76265d (diff)
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
Diffstat (limited to 'hugolib/paths/paths.go')
-rw-r--r--hugolib/paths/paths.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/paths/paths.go b/hugolib/paths/paths.go
index 817670dbd..83d5921e0 100644
--- a/hugolib/paths/paths.go
+++ b/hugolib/paths/paths.go
@@ -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.