Merge commits break LLVM CI download · Issue #101907 · rust-lang/rust (original) (raw)
While PRs are not allowed to have merge commits, they can still be useful locally (or for not rewriting history for longer-running branches).
However, they break the commit detection logic for downloading CI artifacts.
Steps to Reproduce
git checkout <old-commit>
git merge --no-ff master
./x.py build library/std
Expected Result
Builds fine.
Actual Result
...
downloading https://ci-artifacts.rust-lang.org/rustc-builds/<old-commit>/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
curl: (22) The requested URL returned error: 404 #
error: failed to download llvm from ci
help: old builds get deleted after a certain time
help: if trying to compile an old commit of rustc, disable `download-ci-llvm` in config.toml:
[llvm]
download-ci-llvm = false
Build completed unsuccessfully in 0:01:43