Skip to content

Commit

Permalink
don't look at package.metadata.cross when the package isn't part of…
Browse files Browse the repository at this point in the history
… the current workspace
  • Loading branch information
Emilgardis committed Feb 6, 2025
1 parent 4090bec commit 4ccfa60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changes/1623.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "fixed",
"description": "fixed an issue where cross would look for metadata.cross outside the workspace"
}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ pub fn toml(metadata: &CargoMetadata, msg_info: &mut MessageInfo) -> Result<Cros
for (package, package_metadata) in metadata
.packages
.iter()
.filter(|p| metadata.workspace_members.contains(&p.id))
.filter_map(|p| Some((p.manifest_path.as_path(), p.metadata.as_deref()?)))
{
let package_metadata =
Expand Down

0 comments on commit 4ccfa60

Please sign in to comment.