Commit 20f9b0c
committed
download-rustc: Don't consider the current commit for download if running in CI
Avoids the following error:
```
curl: (22) The requested URL returned error: 404
error: failed to download pre-built rustc from CI
note: old builds get deleted after a certain time
help: if trying to compile an old commit of rustc, disable `download-rustc` in config.toml:
[rust]
download-rustc = false
```
Note that this strategy is more complicated than the one for download-ci-llvm, which doesn't have to deal with rollup commits.
Eventually we should probably adopt this for LLVM too, to avoid bugs if someone forgets to mark an LLVM bump as rollup=never.
I tested this with `git -c user.email=bors@rust-lang.org -c user.name=bors commit --allow-empty -m 'test bors commit' && GITHUB_ACTIONS=true x check`.1 parent a6dcffa commit 20f9b0c
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
1985 | 1986 | | |
1986 | 1987 | | |
1987 | 1988 | | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1988 | 1993 | | |
1989 | 1994 | | |
1990 | 1995 | | |
1991 | 1996 | | |
1992 | | - | |
| 1997 | + | |
1993 | 1998 | | |
1994 | 1999 | | |
1995 | 2000 | | |
| |||
0 commit comments