Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Commit ba8c73f

Browse files
docs: add instructions for installing Protoc version 15+ (#1978)
1 parent 72895c9 commit ba8c73f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ Then, you will need to install
4949
- You'll need Ganache only for the tests of the [papyrus_base_layer](../crates/papyrus_base_layer/) crate.
5050
- [Protoc](https://grpc.io/docs/protoc-installation)
5151
- You'll need Protoc only for compiling the [papyrus_network](../crates/papyrus_network/) crate.
52+
- Make sure you have version 15 or higher installed. If not:
53+
1. Remove your current Protoc installation:
54+
```sh
55+
sudo apt remove protoc/protobuf-compiler
56+
```
57+
2. Install version 15 or higher:
58+
```sh
59+
DIR="$HOME/.local"
60+
curl -L "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip" -o protoc.zip
61+
unzip ./protoc.zip -d $DIR
62+
rm ./protoc.zip
63+
```
64+
Replace DIR with your preferred installation directory.
65+
66+
3. Add DIR to your PATH if it's not already there:
67+
```sh
68+
export PATH=$PATH:$DIR/bin
69+
```
5270
5371
### CI
5472
Your code will need to pass [CI](../.github/workflows/ci.yml) before it can be merged. This means your code will need to:

0 commit comments

Comments
 (0)