about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEd Page <eopage@gmail.com>2025-06-20 09:09:53 -0500
committerEd Page <eopage@gmail.com>2025-06-20 09:12:30 -0500
commit367c8feb482d87ba184a6a2ffaf5a2ab6a5fd1cf (patch)
treef8bba0a233ea61e44263fd0db4d5ebec393c3644 /src
parent255aa220821c05c3eac7605fce4ea1c9ab2cbdb4 (diff)
downloadrust-367c8feb482d87ba184a6a2ffaf5a2ab6a5fd1cf.tar.gz
rust-367c8feb482d87ba184a6a2ffaf5a2ab6a5fd1cf.zip
fix(linkcheck): Build using the lockfile
This is to unblock cargo from servo/html5ever#623
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/linkchecker/linkcheck.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/linkchecker/linkcheck.sh b/src/tools/linkchecker/linkcheck.sh
index 6c1e668a7f0..d230610a6e7 100755
--- a/src/tools/linkchecker/linkcheck.sh
+++ b/src/tools/linkchecker/linkcheck.sh
@@ -98,6 +98,7 @@ then
     nightly_hash=$(rustc +nightly -Vv | grep commit-hash | cut -f2 -d" ")
     url="https://raw.githubusercontent.com/rust-lang/rust"
     mkdir linkchecker
+    curl -o linkchecker/Cargo.lock ${url}/${nightly_hash}/Cargo.lock
     curl -o linkchecker/Cargo.toml ${url}/${nightly_hash}/src/tools/linkchecker/Cargo.toml
     curl -o linkchecker/main.rs ${url}/${nightly_hash}/src/tools/linkchecker/main.rs
 fi