summaryrefslogtreecommitdiffstats
path: root/modules/module.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 /modules/module.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 'modules/module.go')
-rw-r--r--modules/module.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/module.go b/modules/module.go
index 42bd94e7b..da963de58 100644
--- a/modules/module.go
+++ b/modules/module.go
@@ -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
}