Skip to content

Add command context to -Zbuild-analysis #16528

@grtlr

Description

@grtlr

Problem

I really like the upcoming -Zbuild-analysis feature. @weihanglo thank you so much for your work on this!

I‘m currently investigating the distribution of rebuilds and their root causes based on this new feature. For this use-case any context about a run that can be retrieved after the fact is super valuable.

Would it technically be possible to include the command that Cargo was invoked with (such as cargo nextest run or cargo run) as part of the logs?

Proposed Solution

Such information could be added as command field to LogMessage::BuildStarted.

Notes

No response

Metadata

Metadata

Assignees

Labels

C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewZ-build-analysisNightly: build-analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions