Skip to content

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

Closed
wlynch wants to merge 2 commits intogoogle:masterfrom
wlynch:check-error
Closed

Check: return non-zero status code for unknown licenses.#44
wlynch wants to merge 2 commits intogoogle:masterfrom
wlynch:check-error

Conversation

@wlynch
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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