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

Fix exclude not work for transitive dependencies and add recursive config #137

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

kezhenxu94
Copy link
Member

dependency.excludes doesn't work for transitive dependencies so this might bring some dependencies that users want to exclude.

This patch also adds a recursive config so users can decide whether to only exclude one dependency or also exclude all dependencies brought by this dependency.

/cc @jmjoy currently it seems Rust (cargo.go) only resolve direct dependencies, not including transitive dependencies, so we might miss some transitive dependencies in the license report.

/cc and thanks to @slievrly for reporting this bug

@kezhenxu94 kezhenxu94 added bug Something isn't working dep / maven Dependency command, maven project labels Sep 8, 2022
@kezhenxu94 kezhenxu94 added this to the 0.5.0 milestone Sep 8, 2022
# - package.json # If this is a npm project.
# - go.mod # If this is a Go project.
# If you don't want to check dependencies' license compatibility, remove the following part
dependency:
Copy link
Member Author

Choose a reason for hiding this comment

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

Previously when users uncomment the the codes they might make the indentation wrong, so I uncomment these by default and users can opt-out by deleting them

github.com/pascaldekloe/goe
github.com/russross/blackfriday/v2
gopkg.in/check.v1
INFO Loading configuration from file: .licenserc.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that we improve the correctness, I update the example to reflect that.

@kezhenxu94 kezhenxu94 merged commit df92796 into main Sep 8, 2022
@kezhenxu94 kezhenxu94 deleted the bug/exclude branch September 8, 2022 06:36
@slievrly
Copy link
Member

slievrly commented Sep 9, 2022

@kezhenxu94 test has passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dep / maven Dependency command, maven project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants