Skip to content

Commit 4c2184e

Browse files
authored
Unrolled build for rust-lang#120403
Rollup merge of rust-lang#120403 - seqre-contrib:pre-vendored-message, r=onur-ozkan Add instructions of how to use pre-vendored 'rustc-src' This PR closes rust-lang#110163. I had to move the URL to the left, making it not aligned as it is three lines above, but the tidy check would yell at me otherwise. If that's not acceptable, I'd love some suggestions on how to make it better. One question: in the original issue (rust-lang#110163 (comment)), it was suggested to mention how to download specific commit tarballs; however, it was said it's not documented anywhere, so I did not include that yet. If there is a want to have that, I'd gladly amend the commit.
2 parents c401f09 + 3cde0e8 commit 4c2184e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/bootstrap/bootstrap.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,16 @@ def check_vendored_status(self):
10341034
eprint('ERROR: vendoring required, but vendor directory does not exist.')
10351035
eprint(' Run `cargo vendor {}` to initialize the '
10361036
'vendor directory.'.format(sync_dirs))
1037-
eprint('Alternatively, use the pre-vendored `rustc-src` dist component.')
1037+
eprint(' Alternatively, use the pre-vendored `rustc-src` dist component.')
1038+
eprint(' To get a stable/beta/nightly version, download it from: ')
1039+
eprint(' '
1040+
'https://forge.rust-lang.org/infra/other-installation-methods.html#source-code')
1041+
eprint(' To get a specific commit version, download it using the below URL,')
1042+
eprint(' replacing <commit> with a specific commit checksum: ')
1043+
eprint(' '
1044+
'https://ci-artifacts.rust-lang.org/rustc-builds/<commit>/rustc-nightly-src.tar.xz')
1045+
eprint(' Once you have the source downloaded, place the vendor directory')
1046+
eprint(' from the archive in the root of the rust project.')
10381047
raise Exception("{} not found".format(vendor_dir))
10391048

10401049
if not os.path.exists(cargo_dir):

0 commit comments

Comments
 (0)