From ae2903b810a8d29f7ef0f2656bdb0b6d60c58dd0 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 24 Oct 2017 17:08:36 -0400 Subject: [PATCH] missing current module source in versionedPathKey The reason versionedPathKey didn't solve the previous test case was a missing source string for the current module. --- config/module/tree.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/module/tree.go b/config/module/tree.go index 691c5fab54..e10dbec1a0 100644 --- a/config/module/tree.go +++ b/config/module/tree.go @@ -270,8 +270,6 @@ func (t *Tree) Load(storage getter.Storage, mode GetMode) error { } } - log.Printf("[TRACE] module source: %q", rawSource) - source, err := getter.Detect(rawSource, t.config.Dir, detectors) if err != nil { return fmt.Errorf("module %s: %s", m.Name, err) @@ -658,7 +656,7 @@ func (t *Tree) Validate() error { // are loaded from. func (t *Tree) versionedPathKey(m *Module) string { path := make([]string, len(t.path)+1) - path[len(path)-1] = m.Name + path[len(path)-1] = m.Name + ";" + m.Source // We're going to load these in order for easier reading and debugging, but // in practice they only need to be unique and consistent.