fix: wrong project root
This commit is contained in:
parent
74f85992b6
commit
18a5e8bdc8
@ -29,7 +29,7 @@ func (b *Build) readProjectMetaInfo() {
|
||||
log.Fatalf("Go module is not enabled, please set GO111MODULE=auto or on")
|
||||
}
|
||||
// 工程根目录
|
||||
config.GocConfig.CurModProjectDir = pkg.Root
|
||||
config.GocConfig.CurModProjectDir = pkg.Module.Dir
|
||||
config.GocConfig.ImportPath = pkg.Module.Path
|
||||
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user