Skip to content

Commit 3cde0e8

Browse files
committed
Add instructions of how to use pre-vendored 'rustc-src'
1 parent e7bbe8c commit 3cde0e8

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)