diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-12-19 17:49:45 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-12-19 20:17:33 +0100 |
commit | 330fa8941152108327504b511c563dacfc3f4c75 (patch) | |
tree | a532ed1c77666714792dc8481624fedda9901d2b /modules/module.go | |
parent | 6db527483dec048fbcc5735c41b137a8eb6508e4 (diff) | |
download | hugo-330fa8941152108327504b511c563dacfc3f4c75.tar.gz hugo-330fa8941152108327504b511c563dacfc3f4c75.zip |
modules: Adjust watch logic vs workspace use definitions
Diffstat (limited to 'modules/module.go')
-rw-r--r-- | modules/module.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/module.go b/modules/module.go index 0d094fe87..42bd94e7b 100644 --- a/modules/module.go +++ b/modules/module.go @@ -184,5 +184,7 @@ func (m *moduleAdapter) Watch() bool { return m.Replace().Version() == "" } - return false + // Any module set up in a workspace file will have Indirect set to false. + // That leaves modules inside the read-only module cache. + return !m.gomod.Indirect } |