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

Check: return non-zero status code for unknown licenses. #44

Closed
wants to merge 2 commits into from

Conversation

wlynch
Copy link
Contributor

@wlynch wlynch commented Nov 23, 2020

Previously if an unknown license was detected, an error message was
printed, but the command would still return 0, indicating success for
many CI tools.

This fixes the behavior to return a proper non-zero error code.

Fixes #31.

Previously if an unknown license was detected, an error message was
printed, but the command would still return 0, indicating success for
many CI tools.

This fixes the behavior to return a proper non-zero error code.

Fixes google#31.
@google-cla google-cla bot added the cla: yes Contributor license agreement signed (https://cla.developers.google.com) label Nov 23, 2020
@andoks
Copy link

andoks commented Jan 19, 2021

Tested this, and it seems to work ok. Makes #46 even more necessary, or else your project will fail if you don't have license files for all your 1st-party packages (e.g in closed-source projects)

@Bobgy Bobgy self-assigned this Apr 11, 2022
@Bobgy Bobgy mentioned this pull request Sep 27, 2022
@Bobgy
Copy link
Collaborator

Bobgy commented Oct 6, 2022

Superceded by #150

@Bobgy Bobgy closed this Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor license agreement signed (https://cla.developers.google.com)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check returns exit code 0 when LICENSE is not found
4 participants