Skip to content

Commit 8ab372d

Browse files
Rollup merge of #120403 - seqre-contrib:pre-vendored-message, r=onur-ozkan
Add instructions of how to use pre-vendored 'rustc-src' This PR closes #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 (#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 a44b134 + 3cde0e8 commit 8ab372d

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)