问题:go: go.mod file not found in current directory or any parent directory

 

问题:

dlv-dap.exe dap --check-go-version=false --listen=127.0.0.1:62068 from h:\go\go-03
DAP server listening at: 127.0.0.1:62068
Build Error: go build -o C:\Users\CHIHUA~1.SEN\AppData\Local\Temp\__debug_bin2136799227.exe -gcflags all=-N -l .
go: go.mod file not found in current directory or any parent directory; see 'go help modules' (exit status 1)

解决:

go env -w GO111MODULE=auto

 

参考:

https://blog.csdn.net/n_fly/article/details/116489934

posted @ 2021-11-29 15:33  无限指数增长  阅读(637)  评论(0)    收藏  举报