-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bill-of-materials test fails in CI with Go 1.13 #11132
Comments
sure, i can take a look. |
@gyuho , this requires modifications in Should i send a PR to |
Let's fix |
ok !! |
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
Go 1.13 is module aware, so the output of 'go list' results in paths pointing to module cache (GOPATH/pkg/mod). Non module aware go versions, the `Root` field in the `go list` output contains `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 `GOPATH` and `ImportPath` fields. Now the LICENSES need to be read by 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 etcd CI with Go 1.13. etcd-io/etcd#11132
@gyuho can you get the PR merged? |
@gyuho the PR is merged, we can close this issue. |
@vimalk78 Thanks! |
@vimalk78 Can we reenable bom tests? |
bill-of-materials was fixed for module aware 'go list' as part of coreos/license-bill-of-materials#17 So can re enable bom tests fixes etcd-io#11132
bom test is still failing. Should we reopen this? |
yes we can reopen it. |
Just pushed a new test image. Please try again. |
Bom test still seems to be failing |
#11110
The text was updated successfully, but these errors were encountered: