Skip to content

Commit

Permalink
Ignore workspace members when checking licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Mar 26, 2022
1 parent bb4b9d1 commit 1afb9cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Added

- Ignores [workspace members](https://doc.rust-lang.org/cargo/reference/workspaces.html) when checking licenses.

### Changed

- Embedded rust-analyzer for expanding procedural macros.
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,9 @@ fn bundle(

let notices = libs
.iter()
.filter(|(_, (p, _, _, _))| p.has_lib())
.filter(|(_, (p, _, _, _))| {
p.has_lib() && !metadata.workspace_members.contains(&p.id)
})
.map(|(_, (lib_package, _, _, _))| {
shell.status("Checking", format!("the license of `{}`", lib_package.id))?;
lib_package
Expand Down

0 comments on commit 1afb9cf

Please sign in to comment.