這是我的項目結構go? tree -L 2.├── cmd│ ├── app.go│ ├── canary.go├── go.mod├── go.sum├── lib│ ├── clisupport│ ├── fileutils├── myapp├── myapp.go├── pkg│ ├── app│ ├── canarymain函數在文件中。myapp.go我想啟動調試會話,因此我使用以下文件launch.json{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "myconfig", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceFolder}", "args": [] } ]}但是,當我單擊調試按鈕時,該過程會崩潰,并帶有巨大的痕跡,如下所示:/Users/pkaramol/go/pkg/mod/golang.org/x/[email protected]/google/default.go:17:2: missing go.sum entry for module providing package cloud.google.com/go/compute/metadata (imported by golang.org/x/oauth2/google); to add: go get golang.org/x/oauth2/[email protected]/Users/pkaramol/go/pkg/mod/k8s.io/[email protected]/discovery/discovery_client.go:28:2: missing go.sum entry for module providing package github.com/golang/protobuf/proto (imported by k8s.io/client-go/discovery); to add: go get k8s.io/client-go/[email protected]為什么會失???
- 1 回答
- 0 關注
- 86 瀏覽
添加回答
舉報
0/150
提交
取消