@@ -450,13 +450,13 @@ live crates.io, you won't be able to publish that crate locally.
450
450
In your crate directory, run:
451
451
452
452
```
453
- cargo publish --index file:///path/to/your/crates.io/checkout/ tmp/index-co
453
+ cargo publish --index file:///path/to/your/crates.io/tmp/index-bare --token $YOUR_TOKEN
454
454
```
455
455
456
456
> If you're using an older version of cargo you should use `--host` instead of `--index`.
457
457
458
458
where `file:///path/to/your/crates.io/checkout` is the directory that you have
459
- crates.io's code in, and `tmp/index-co ` is the directory with the git index
459
+ crates.io's code in, and `tmp/index-bare ` is the directory with the git index
460
460
that `./script/init-local-index.sh` set up.
461
461
462
462
Note that when you're running crates.io in development mode without the S3
@@ -478,7 +478,7 @@ content:
478
478
[ source]
479
479
480
480
[ source.mirror]
481
- registry = "file:///path/to/your/crates.io/checkout/ tmp/index-co "
481
+ registry = "file:///path/to/your/crates.io/tmp/index-bare "
482
482
483
483
[ source.crates-io]
484
484
replace-with = "mirror"
@@ -488,8 +488,8 @@ Then add the crate you published to your local crates.io as a dependency in
488
488
this crate's `Cargo.toml`, and `cargo build` should display output like this:
489
489
490
490
```
491
- Updating registry `file:///path/to/your/crates.io/checkout/ tmp/index-co `
492
- Downloading yourcrate v0.1.0 (registry file:///path/to/your/crates.io/checkout/ tmp/index-co )
491
+ Updating registry `file:///path/to/your/crates.io/tmp/index-bare `
492
+ Downloading yourcrate v0.1.0 (registry file:///path/to/your/crates.io/tmp/index-bare )
493
493
Compiling yourcrate v0.1.0
494
494
Compiling thiscrate v0.1.0 (file:///path/to/thiscrate)
495
495
Finished dev [ unoptimized + debuginfo] target(s) in 0.56 secs
0 commit comments