File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ impl flags::Dist {
17
17
let project_root = project_root ( ) ;
18
18
let target = Target :: get ( & project_root) ;
19
19
let dist = project_root. join ( "dist" ) ;
20
- sh. remove_path ( & dist) ? ;
20
+ let _ = sh. remove_path ( & dist) ;
21
21
sh. create_dir ( & dist) ?;
22
22
23
23
let release_channel = if stable { "stable" } else { "nightly" } ;
Original file line number Diff line number Diff line change @@ -51,10 +51,13 @@ impl flags::Metrics {
51
51
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
52
52
)
53
53
. run ( ) ?;
54
- let _d = sh. push_dir ( "metrics" ) ;
55
54
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" ) ;
58
61
cmd ! ( sh, "git add ." ) . run ( ) ?;
59
62
cmd ! ( sh
, "git -c user.name=Bot -c [email protected] commit --message 📈" )
60
63
. run ( ) ?;
You can’t perform that action at this time.
0 commit comments