Modified run command to translate symlinks to absolute paths

This commit is contained in:
NotZippy
2018-10-24 21:29:07 -07:00
parent cdef0b75a8
commit 4a877b2a8a
3 changed files with 25 additions and 5 deletions

View File

@@ -261,10 +261,10 @@ func (c *CommandConfig) InitGoPaths() {
}
}
utils.Logger.Info("Source root", "path", c.SrcRoot, "cwd", workingDir, "gopath", c.GoPath, "bestpath",bestpath)
if len(c.SrcRoot) == 0 && len(bestpath) > 0 {
c.SrcRoot = bestpath
}
utils.Logger.Info("Source root", "path", c.SrcRoot, "cwd", workingDir, "gopath", c.GoPath)
// If source root is empty and this isn't a version then skip it
if len(c.SrcRoot) == 0 {