Skip to content

Commit dada4fc

Browse files
authored
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.
1 parent d5f0be0 commit dada4fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,11 @@ download the latest nightly toolchain tar file:
281281
`carbon_toolchain-0.0.0-0.nightly.YYYY.MM.DD.tar.gz`. Then you can try it out:
282282

283283
```shell
284-
# A variable with the specific nightly version:
285-
VERSION="0.0.0-0.nightly.YYYY.MM.DD"
284+
# A variable with the nightly version from yesterday:
285+
VERSION="$(date -d yesterday +0.0.0-0.nightly.%Y.%m.%d)"
286+
287+
# Get the release
288+
wget https://github.com/carbon-language/carbon-lang/releases/download/v${VERSION}/carbon_toolchain-${VERSION}.tar.gz
286289

287290
# Unpack the toolchain:
288291
tar -xvf carbon_toolchain-${VERSION}.tar.gz

0 commit comments

Comments
 (0)