Skip to content

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

Merged
kezhenxu94 merged 1 commit intomainfrom
bug/exclude
Sep 8, 2022
Merged

Fix exclude not work for transitive dependencies and add recursive config#137
kezhenxu94 merged 1 commit intomainfrom
bug/exclude

Conversation

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