【发布时间】:2020-09-24 00:55:12
【问题描述】:
我正在尝试在本地为模块运行 godoc,但遇到此错误。
在我看来 godoc 依赖于 go list,但不以模块友好的方式运行 go list。
ak/ (master) godoc -http=localhost:6060
using module mode; GOMOD=/Users/aaron/ak/go.mod
failed to determine the build list of the main module: go command exited unsuccessfully: exit status 1
go list -m: can't compute 'all' using the vendor directory
(Use -mod=mod or -mod=readonly to bypass.)
【问题讨论】:
-
到目前为止,这是不可能的。
标签: go go-modules godoc