Auto merge of #124883 - onur-ozkan:change-stage0-file, r=Mark-Simulacrum
use key-value format in stage0 file Currently, we are working on the python removal task on bootstrap. Which means we have to extract some data from the stage0 file using shell scripts. However, parsing values from the stage0.json file is painful because shell scripts don't have a built-in way to parse json files. This change simplifies the stage0 file format to key-value pairs, which makes it easily readable from any environment. See the zulip thread for more details: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Using.20different.20format.20in.20the.20stage0.20file
This commit is contained in:
commit
645bc609d9
13 changed files with 635 additions and 590 deletions
2
.github/workflows/dependencies.yml
vendored
2
.github/workflows/dependencies.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
|||
- name: install the bootstrap toolchain
|
||||
run: |
|
||||
# Extract the stage0 version
|
||||
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
|
||||
TOOLCHAIN=$(awk -F= '{a[$1]=$2} END {print(a["compiler_version"] "-" a["compiler_date"])}' src/stage0)
|
||||
# Install and set as default
|
||||
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
|
||||
rustup default $TOOLCHAIN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue