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 /modules/client.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 'modules/client.go')
-rw-r--r-- | modules/client.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/client.go b/modules/client.go index 7108c9bef..b41ca142a 100644 --- a/modules/client.go +++ b/modules/client.go @@ -153,10 +153,6 @@ func (c *Client) Graph(w io.Writer) error { continue } - prefix := "" - if module.Disabled() { - prefix = "DISABLED " - } dep := pathVersion(module.Owner()) + " " + pathVersion(module) if replace := module.Replace(); replace != nil { if replace.Version() != "" { @@ -166,7 +162,7 @@ func (c *Client) Graph(w io.Writer) error { dep += " => " + replace.Dir() } } - fmt.Fprintln(w, prefix+dep) + fmt.Fprintln(w, dep) } return nil |