modules: Add module.import.noMounts config

Fixes #8708
This commit is contained in:
Bjørn Erik Pedersen
2021-06-28 10:39:52 +02:00
parent 3a6dc6d3f4
commit 40dfdd0952
3 changed files with 12 additions and 0 deletions

View File

@@ -354,6 +354,11 @@ func (c *collector) addAndRecurse(owner *moduleAdapter, disabled bool) error {
}
func (c *collector) applyMounts(moduleImport Import, mod *moduleAdapter) error {
if moduleImport.NoMounts {
mod.mounts = nil
return nil
}
mounts := moduleImport.Mounts
modConfig := mod.Config()