Skip to content

Commit 107433f

Browse files
authored
don't look at package.metadata.cross when the package isn't part of the current workspace (#1623)
resolves #1619
2 parents 4090bec + a9b43d4 commit 107433f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changes/1623.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "fixed",
3+
"description": "fixed an issue where cross would look for metadata.cross outside the workspace"
4+
}

deny.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ targets = [
99

1010
[advisories]
1111
version = 2
12-
# FIXME: remove this if/when clap changes to is-terminal, atty is
13-
# patched, or we migrated to an MSRV of 1.66.0.
1412
ignore = [
13+
# FIXME: remove this if/when clap changes to is-terminal, atty is
14+
# patched, or we migrated to an MSRV of 1.66.0.
1515
"RUSTSEC-2021-0145",
16+
"RUSTSEC-2024-0375"
1617
]
1718

1819
[bans]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ pub fn toml(metadata: &CargoMetadata, msg_info: &mut MessageInfo) -> Result<Cros
959959
for (package, package_metadata) in metadata
960960
.packages
961961
.iter()
962+
.filter(|p| metadata.workspace_members.contains(&p.id))
962963
.filter_map(|p| Some((p.manifest_path.as_path(), p.metadata.as_deref()?)))
963964
{
964965
let package_metadata =

0 commit comments

Comments
 (0)