mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
modules: Adjust watch logic vs workspace use definitions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user