1

过去我在“govendor license”方面取得了一些成功,但现在,它似乎只在 GOPATH 中搜索,而不是先在供应商文件夹中查找。

dibbj@USENDIBBJL4C MINGW64 ~/go/src/mlx-agent (master)
$ govendor license
Error: Failed to discover license for "github.com/StackExchange/wmi" open `C:\Users\dibbj\go\src\github.com\StackExchange\wmi: The system cannot find the path specified.`

dibbj@USENDIBBJL4C MINGW64 ~/go/src/mlx-agent (master)
$ ls vendor/github.com/StackExchange/wmi
LICENSE  README.md  swbemservices.go  wmi.go

GOPATH=C:\Users\dibbj\go

我在 Ubuntu 和 Win10 上都得到了相同的行为。其他 govendor 命令似乎有效,实际上显示了正确的路径

 $ govendor list -p
 vu C:\Users\dibbj\go\src\mlx-agent\vendor\github.com\StackExchange\wmi                  
 vu C:\Users\dibbj\go\src\mlx-agent\vendor\github.com\shirou\gopsutil\internal\common    
 vu C:\Users\dibbj\go\src\mlx-agent\vendor\github.com\shirou\gopsutil\process            
 vu C:\Users\dibbj\go\src\mlx-agent\vendor\golang.org\x\sys\unix 

$ govendor -version
v1.0.9

$ go version
go version go1.10.3 windows/amd64

有什么建议么?谢谢

有什么建议么?

4

0 回答 0