Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

*: Modified to conform to Module aware 'go list' #17

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

vimalk78
Copy link
Contributor

@vimalk78 vimalk78 commented Sep 9, 2019

modified to use go1.13

@vimalk78
Copy link
Contributor Author

vimalk78 commented Sep 9, 2019

fixes etcd-io/etcd#11132

@vimalk78
Copy link
Contributor Author

vimalk78 commented Sep 9, 2019

@gyuho PTAL

@gyuho
Copy link
Contributor

gyuho commented Sep 9, 2019

Does this fix the issue? /cc @philips

@philips
Copy link
Contributor

philips commented Sep 9, 2019

can you update the commit message of 038a5eb to include some details on what this change is and why it was necessary for go 1.13

Here is an example of a good commit message from this repo: 55ffe16

Some more context:
https://juffalow.com/other/write-good-git-commit-message

@vimalk78
Copy link
Contributor Author

vimalk78 commented Sep 9, 2019

@philips thanks for the comment. Updated the commit message.
Please have a look.

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
@vimalk78 vimalk78 changed the title *: fixed for go1.13 *: Modified to conform to Module aware 'go list' Sep 9, 2019
@philips
Copy link
Contributor

philips commented Sep 10, 2019

LGTM, go for it.

@vimalk78
Copy link
Contributor Author

can this PR be merged?

@philips philips merged commit 13baff4 into coreos:master Sep 13, 2019
@vimalk78
Copy link
Contributor Author

thanks @philips !!

vimalk78 added a commit to vimalk78/etcd that referenced this pull request Sep 14, 2019
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants