Skip to content

Commit

Permalink
use cargo-install to install josh-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 25, 2022
1 parent d23554f commit fed7e2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/miri/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ You can also directly run Miri on a Rust source file:
## Advanced topic: Syncing with the rustc repo

We use the [`josh` proxy](https://github.com/josh-project/josh) to transmit changes between the
rustc and Miri repositories. The eaisest way to run josh is via docker:
rustc and Miri repositories.

```sh
docker pull joshproject/josh-proxy:latest
docker run -it -p 8000:8000 -e JOSH_REMOTE=https://github.com -e JOSH_EXTRA_OPTS=--no-background -v josh-vol:/data/git joshproject/josh-proxy:latest
cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22.12.06
josh-proxy --local=$HOME/.cache/josh --remote=https://github.com --no-background
```

This sets up a local volume `josh-vol` for josh's cache.
This uses a directory `$HOME/.cache/josh` as a cache, to speed up repeated pulling/pushing.

### Importing changes from the rustc repo

Expand Down

0 comments on commit fed7e2c

Please sign in to comment.