--unit-graph
outputs PackageId instead of PackageIdSpec
#15445
Labels
A-build-execution
Area: anything dealing with executing the compiler
C-bug
Category: bug
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
The
pkg_id
fields in the output ofcargo build --unit-graph
are still in thePackageId
format, whilecargo metadata
and build JSON messages have switched toPackageIdSpec
(#12914, #13311). As a result, package information cannot be directly cross-referenced between the unit graph andcargo metadata
and/or JSON messages.Steps
Run
cargo build --unit-graph -Z unstable-options
on a project with a nightlycargo
Possible Solution(s)
Change the
pkg_id
field to be aPackageIdSpec
instead, like theid
field incargo metadata
andpackage_id
field in JSON messages.Notes
No response
Version
The text was updated successfully, but these errors were encountered: