Merge pull request #15 from colincross/cycle

Fix cycle printing
This commit is contained in:
jgennis 2015-03-31 15:28:10 -07:00
commit 11bcca9098

View file

@ -1177,7 +1177,7 @@ func (c *Context) updateDependencies() (errs []error) {
})
// Iterate backwards through the cycle list.
curModule := cycle[len(cycle)-1]
curModule := cycle[0]
for i := len(cycle) - 1; i >= 0; i-- {
nextModule := cycle[i]
errs = append(errs, &Error{