mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 13:50:10 +01:00
Make the nightly instructions work without modification. (#4266)
Compute the date rather than including a placeholder for it. Also include a command to download the release, taken from Carbon Copy #4.
This commit is contained in:
@@ -281,8 +281,11 @@ download the latest nightly toolchain tar file:
|
||||
`carbon_toolchain-0.0.0-0.nightly.YYYY.MM.DD.tar.gz`. Then you can try it out:
|
||||
|
||||
```shell
|
||||
# A variable with the specific nightly version:
|
||||
VERSION="0.0.0-0.nightly.YYYY.MM.DD"
|
||||
# A variable with the nightly version from yesterday:
|
||||
VERSION="$(date -d yesterday +0.0.0-0.nightly.%Y.%m.%d)"
|
||||
|
||||
# Get the release
|
||||
wget https://github.com/carbon-language/carbon-lang/releases/download/v${VERSION}/carbon_toolchain-${VERSION}.tar.gz
|
||||
|
||||
# Unpack the toolchain:
|
||||
tar -xvf carbon_toolchain-${VERSION}.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user