Skip to content
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

Update go-license-tool #553

Merged
merged 3 commits into from
Jan 7, 2020

Conversation

zhenghuiwang
Copy link
Contributor

@zhenghuiwang zhenghuiwang commented Jan 2, 2020

Update go-license-tool with more detailed instructions and one new script.


This change is Reviewable

@jlewi
Copy link
Contributor

jlewi commented Jan 3, 2020

@Bobgy could you review this please?

Copy link
Contributor

@Bobgy Bobgy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhenghuiwang Thanks for the rewrite! Extra examples and process documentation makes this super clear! Great work!

only left some minor comments

for line in f:
parts = line.strip().split(',')
_, license_url, license_type, *_ = parts
if license_url in mapping and license_type == 'Other':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the purpose of the CI workflow, I think this script should better throw an error if some library has license_type 'Other', but it is not in the mapping.
This guards against incomplete patch file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion! Done.


Reminder: don't forget to put the library itself into `dep.txt`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we keep this reminder?
For redistributing 3rd party images, we need the library itself's license.
For distributing first party images, I think it's better we deliver our own license too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Added to line 43

Copy link
Contributor Author

@zhenghuiwang zhenghuiwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Bobgy for the review! PTAL

@Bobgy
Copy link
Contributor

Bobgy commented Jan 7, 2020

/lgtn

@Bobgy
Copy link
Contributor

Bobgy commented Jan 7, 2020

/lgtm

@zhenghuiwang
Copy link
Contributor Author

zhenghuiwang commented Jan 7, 2020 via email

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zhenghuiwang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 768a4d0 into kubeflow:master Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants