fix dockerfile generation bug (#277)

This commit is contained in:
Kevin Wan
2020-12-11 20:31:31 +08:00
committed by GitHub
parent da8f76e6bd
commit c686c93fb5
4 changed files with 19 additions and 13 deletions

View File

@@ -60,7 +60,6 @@ func FindGoModPath(dir string) (string, bool) {
var hasGoMod = false
for {
if FileExists(filepath.Join(tempPath, goModeIdentifier)) {
tempPath = filepath.Dir(tempPath)
rootPath = strings.TrimPrefix(absDir[len(tempPath):], "/")
hasGoMod = true
break