This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ anyhow = "1.0.34"
1010curl = " 0.4.38"
1111indexmap = { version = " 1.7.0" , features = [" serde" ] }
1212serde = { version = " 1.0.125" , features = [" derive" ] }
13- serde_json = " 1.0.59"
13+ serde_json = { version = " 1.0.59" , features = [ " preserve_order " ] }
1414toml = " 0.5.7"
Original file line number Diff line number Diff line change @@ -198,9 +198,12 @@ struct Stage0 {
198198#[ derive( Debug , serde:: Serialize , serde:: Deserialize ) ]
199199struct Config {
200200 dist_server : String ,
201- artifacts_server : String ,
202- artifacts_with_llvm_assertions_server : String ,
203- git_merge_commit_email : String ,
201+ // There are other fields in the configuration, which will be read by src/bootstrap or other
202+ // tools consuming stage0.json. To avoid the need to update bump-stage0 every time a new field
203+ // is added, we collect all the fields in an untyped Value and serialize them back with the
204+ // same order and structure they were deserialized in.
205+ #[ serde( flatten) ]
206+ other : serde_json:: Value ,
204207}
205208
206209#[ derive( Debug , serde:: Serialize , serde:: Deserialize ) ]
You can’t perform that action at this time.
0 commit comments