Skip to content

Commit eb0f315

Browse files
Merge #1086
1086: Update contribution guidelines to use --index r=carols10cents Introduced in rust-lang/cargo#4209
2 parents e83165f + 03a95c5 commit eb0f315

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,14 @@ live crates.io, you won't be able to publish that crate locally.
428428
In your crate directory, run:
429429
430430
```
431-
cargo publish --host file:///path/to/your/crates.io/checkout/tmp/index-co
431+
cargo publish --index file:///path/to/your/crates.io/checkout/tmp/index-co
432432
```
433433
434+
> If you're using an older version of cargo you should use `--host` instead of `--index`.
435+
434436
where `file:///path/to/your/crates.io/checkout` is the directory that you have
435437
crates.io's code in, and `tmp/index-co` is the directory with the git index
436-
that `./script/init-local-index.sh` set up. [Yes, `host` dosen't really make
437-
sense as a name for this flag](https://github.com/rust-lang/cargo/issues/3797).
438+
that `./script/init-local-index.sh` set up.
438439
439440
Note that when you're running crates.io in development mode without the S3
440441
variables set (which is what we've done in these setup steps), the crate files

0 commit comments

Comments
 (0)