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

Add CI check for untidy go modules #949

Merged
merged 4 commits into from
Nov 12, 2020
Merged

Add CI check for untidy go modules #949

merged 4 commits into from
Nov 12, 2020

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Nov 6, 2020

What this PR does / why we need it:
Add a CI check to confirm whether go modules are tidy. If they are not tidy, complain!

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #917

Special notes for your reviewer:
Demo failure on https://github.com/Kong/kubernetes-ingress-controller/pull/948/checks?check_run_id=1366090329

Shamelessly copy-pastaed script from grafana/grafana#27204 with minor modifications to add problem-correction instructions.

Add a CI check to confirm whether go modules are tidy. If they are not
tidy, complain!
@rainest
Copy link
Contributor Author

rainest commented Nov 11, 2020

Hack script (the copied part) now includes the suggested Apache boilerplate from https://github.com/grafana/grafana/blob/master/LICENSE#L190-L202

Modification notice after should suffice for redistribution requirement (b): https://github.com/grafana/grafana/blob/master/LICENSE#L98-L99

@rainest rainest requested a review from mflendrich November 11, 2020 21:14
Copy link
Contributor

@mflendrich mflendrich left a comment

Choose a reason for hiding this comment

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

LGTM on the technical side. Please ensure that all the license requirements are met before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail CI if go mod tidy is not no-op
2 participants