change the FolderStorage key

updating the key will cause the FolderStorage hash to change forcing
modules to be re-fetched. This is required because any configurations
using the subDir notation will have the configuration in the wrong
directory.
This commit is contained in:
James Bardin 2017-09-06 13:44:37 -04:00
parent 6c20141c30
commit d216d19f21
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (t *Tree) Load(s getter.Storage, mode GetMode) error {
}
// Get the directory where this module is so we can load it
key := strings.Join(path, ".")
key = fmt.Sprintf("root.%s-%s", key, m.Source)
key = fmt.Sprintf("module.%s-%s", key, m.Source)
dir, ok, err := getStorage(s, key, source, mode)
if err != nil {