Skip to content

Commit

Permalink
Auto merge of #16387 - lnicola:metrics-sysroot, r=Veykril
Browse files Browse the repository at this point in the history
internal: Fix sysroot metadata in metrics

CC #16380 (comment)
  • Loading branch information
bors committed Jan 17, 2024
2 parents 5b62ebc + 27b0636 commit a19372f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xtask/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ impl Metrics {
sh,
"./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
)
// the sysroot uses `public-dependency`, so we make cargo think it's a nightly
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly")
.read()?;
for (metric, value, unit) in parse_metrics(&output) {
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());
Expand Down

0 comments on commit a19372f

Please sign in to comment.