Skip to content

Commit 9aadb9b

Browse files
authored
Update CONTRIBUTING.md to install diesel_cli 2.x (#6198)
Diesel was upgraded to version 2 in #4892, but the contributing instructions still have the reader install diesel_cli 1.x, which will result in some fun errors when it attempts to regenerate `src/schema.rs` when running `diesel migration run`, as recommended later in the contributing guide.
1 parent 9068acb commit 9aadb9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ In order to run the backend, you will need to have installed:
164164
- [Rust](https://www.rust-lang.org/en-US/) stable >= 1.16.0 and cargo, which comes with Rust
165165
- [Postgres](https://www.postgresql.org/) >= 9.5
166166
- [OpenSSL](https://www.openssl.org/) >= 1.0.2k
167-
- [diesel_cli](http://diesel.rs/guides/getting-started/) >= 1.2.0 and < 2.0.0
167+
- [diesel_cli](http://diesel.rs/guides/getting-started/) >= 2.0.0 and < 3.0.0
168168

169169
##### Rust
170170

@@ -285,7 +285,7 @@ by typing `\q`) without any errors to connect to your running Postgres server.
285285
On all platforms, install through `cargo` by running:
286286
287287
```
288-
cargo install diesel_cli --no-default-features --features postgres --version ^1
288+
cargo install diesel_cli --no-default-features --features postgres --version ^2
289289
```
290290
291291
This will install a binary named `diesel`, so you should be able to run `diesel

0 commit comments

Comments
 (0)