Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: Modified to conform to Module aware 'go list'
Go 1.13 is module aware, so the output of 'go list' results in paths pointing to moule cache (GOPATH/pkg/mod). Non module aware go versions, the `Root` field in the `go list` output contained `GOPATH`. IN module aware Go versions, it points to the root of module in module cache. Earlier versions, the LICENSEs could be read by concatenating the concatenating `GOPATH` and `ImportPath`. Now the LICENSES need to be read using `Root` and `Dir` fields which point to the root of the module and imported folder within the module. This change fixes bill-of-materials test fails in CI with Go 1.13. etcd-io/etcd#11132
- Loading branch information