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:
Richard Smith
2024-08-29 05:37:42 +00:00
committed by GitHub
parent d5f0be08e0
commit dada4fc29f
+5 -2
View File
@@ -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