Skip to content

Commit a52f088

Browse files
bors[bot]lnicolaJonas Schievink
authored
Merge #11727 #11728
11727: minor: Fix metrics.json path r=jonas-schievink a=lnicola CC #11724 (comment) 11728: Try to fix nightlies r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Laurențiu Nicola <[email protected]> Co-authored-by: Jonas Schievink <[email protected]>
3 parents a57fee6 + d64c734 + 05d4e95 commit a52f088

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

xtask/src/dist.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl flags::Dist {
1717
let project_root = project_root();
1818
let target = Target::get(&project_root);
1919
let dist = project_root.join("dist");
20-
sh.remove_path(&dist)?;
20+
let _ = sh.remove_path(&dist);
2121
sh.create_dir(&dist)?;
2222

2323
let release_channel = if stable { "stable" } else { "nightly" };

xtask/src/metrics.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ impl flags::Metrics {
5151
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
5252
)
5353
.run()?;
54-
let _d = sh.push_dir("metrics");
5554

56-
let mut file = fs::File::options().append(true).open("metrics.json")?;
57-
writeln!(file, "{}", metrics.json())?;
55+
{
56+
let mut file = fs::File::options().append(true).open("metrics/metrics.json")?;
57+
writeln!(file, "{}", metrics.json())?;
58+
}
59+
60+
let _d = sh.push_dir("metrics");
5861
cmd!(sh, "git add .").run()?;
5962
cmd!(sh, "git -c user.name=Bot -c [email protected] commit --message 📈")
6063
.run()?;

0 commit comments

Comments
 (0)