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

Don't count skipped sources as failures #290

Merged
merged 1 commit into from
Jun 30, 2020
Merged

Conversation

jonabc
Copy link
Contributor

@jonabc jonabc commented Jun 30, 2020

🤦 fixes an issue where licensed was returning an error exit code when sources were skipped per the --sources CLI argument. The return value from the reporter blocks are propagated up to the command root, which checks that all returned are truthy. In the case of sources being skipped, a next (nil) if ... causes the return value to be falsey and the CLI exits 1.

Fixing this by explicitly returning true when skipping evaluation of a command, app, source and dependency.

@jonabc jonabc merged commit 83e9bdd into master Jun 30, 2020
@jonabc jonabc deleted the fix_sources_skip_exit_code branch June 30, 2020 14:41
@jonabc jonabc mentioned this pull request Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant