diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-28 11:39:52 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-28 11:39:52 +0300 |
commit | 40dfdd09521bcb8f56150e6791d60445198f27ab (patch) | |
tree | 1f99d56538d53a3a9a50780098331238b756e6af /modules/collect.go | |
parent | 3a6dc6d3f423c4acb79ef21b5a76e616fa2c9477 (diff) |
modules: Add module.import.noMounts config
Fixes #8708
Diffstat (limited to 'modules/collect.go')
-rw-r--r-- | modules/collect.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/collect.go b/modules/collect.go index 52d75af59..026373b54 100644 --- a/modules/collect.go +++ b/modules/collect.go @@ -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() |