Unnamed repository; edit this file 'description' to name the repository.
Merge #11727
11727: minor: Fix metrics.json path r=lnicola a=lnicola CC https://github.com/rust-analyzer/rust-analyzer/pull/11724#issuecomment-1069047929 Co-authored-by: LaurenÈ›iu Nicola <[email protected]>
bors[bot] 2022-03-17
parent a57fee6 · parent 8f99c93 · commit 29e3851
-rw-r--r--xtask/src/metrics.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index aa700d715d..27dae5a449 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -51,10 +51,14 @@ impl flags::Metrics {
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
)
.run()?;
- let _d = sh.push_dir("metrics");
- let mut file = fs::File::options().append(true).open("metrics.json")?;
- writeln!(file, "{}", metrics.json())?;
+ {
+ let mut file =
+ fs::File::options().append(true).open("target/metrics/metrics.json")?;
+ writeln!(file, "{}", metrics.json())?;
+ }
+
+ let _d = sh.push_dir("metrics");
cmd!(sh, "git add .").run()?;
cmd!(sh, "git -c user.name=Bot -c [email protected] commit --message 📈")
.run()?;