过去,我在“政府许可”方面取得了一些成功,但是现在,它似乎仅在GOPATH中进行搜索,而不是首先在vendor文件夹中进行搜索。
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
有什么建议吗? 谢谢
有什么建议吗?