diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2022-03-16 18:15:44 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2022-03-16 18:43:56 +0200 |
| commit | 8f99c93f0fe69f1bc6edb693c19111365858503c (patch) | |
| tree | 58bf0e13257ffdd99eaf260dfa446d0e4b4b039b | |
| parent | c1cf2ef6f434975799d051d8d1ee71c975ac1df3 (diff) | |
| download | rust-8f99c93f0fe69f1bc6edb693c19111365858503c.tar.gz rust-8f99c93f0fe69f1bc6edb693c19111365858503c.zip | |
Fix metrics.json path
| -rw-r--r-- | xtask/src/metrics.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index aa700d715d5..27dae5a4498 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 user.email=dummy@example.com commit --message 📈") .run()?; |
