|
|
@ -2,6 +2,7 @@ package project
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"io/ioutil"
|
|
|
|
"io/ioutil"
|
|
|
|
|
|
|
|
"os"
|
|
|
|
"os/exec"
|
|
|
|
"os/exec"
|
|
|
|
"path/filepath"
|
|
|
|
"path/filepath"
|
|
|
|
"regexp"
|
|
|
|
"regexp"
|
|
|
@ -62,6 +63,9 @@ func Prepare(projectDir string, checkGrpcEnv bool) (*Project, error) {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
goMod = strings.TrimSpace(ret)
|
|
|
|
goMod = strings.TrimSpace(ret)
|
|
|
|
|
|
|
|
if goMod == os.DevNull {
|
|
|
|
|
|
|
|
goMod = ""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ret, err = execx.Run(constGoPath, "")
|
|
|
|
ret, err = execx.Run(constGoPath, "")
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|