Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
John Guibas authored and John Guibas committed Feb 11, 2024
1 parent bb21b4d commit 03d7c6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions book/writing-programs/patched-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ You may also need to update your `Cargo.lock` file. For example:
cargo update -p ed25519-consensus
```

If you want to patch with a private repo, you have to use the following adjustment in your `Cargo.toml`:

```toml
ed25519-consensus = { git = "ssh://[email protected]/succinctlabs/ed25519-consensus-private.git" }
```
and use the following command to apply the patch (assuming you have your ssh keys setup properly with Github):
```
CARGO_NET_GIT_FETCH_WITH_CLI=true cargo update -p ed25519-consensus
```

### Sanity Checks

**You must make sure your patch is in the workspace root, otherwise it will not be applied.**
Expand Down

0 comments on commit 03d7c6e

Please sign in to comment.