diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-08-23 12:39:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-08-23 18:05:18 +0200 |
commit | dcf425c846dcd6fbb0c05e87342077ab870eb7e1 (patch) | |
tree | 603f96feb9bb7a7503d86a4788dc5a6918ba4045 /hugolib/paths/paths.go | |
parent | 9a8c84d6000fab3ec6847a330c45bfe24b76265d (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.go | 2 |
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. |