feat(goctl): support go work (#4332) (#4344)

This commit is contained in:
ningzi
2025-02-05 22:22:40 +08:00
committed by GitHub
parent af7cf79963
commit 77fb271a06
4 changed files with 80 additions and 3 deletions

View File

@@ -51,6 +51,10 @@ func projectFromGoMod(workDir string) (*ProjectContext, error) {
return nil, err
}
if err := UpdateGoWorkIfExist(workDir); err != nil {
return nil, err
}
m, err := getRealModule(workDir, execx.Run)
if err != nil {
return nil, err