-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(contributing): add tips for audit and gatherer PRs (#10690)
- Loading branch information
1 parent
14f619a
commit bfdd899
Showing
5 changed files
with
104 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
## How to compile protos + use locally | ||
|
||
1. Install the proto compiler | ||
This comment has been minimized.
Sorry, something went wrong. |
||
1. Manual install | ||
1. Get the latest proto [release](https://github.com/protocolbuffers/protobuf/releases) (select one with python included if you want to run this validator) | ||
1. Install the [C++ Protocol Buffer Runtime](https://github.com/protocolbuffers/protobuf/blob/master/src/README.md) | ||
1. Brew install | ||
1. `brew install protobuf` | ||
1. Run `yarn compile-proto` then `yarn build-proto-roundtrip` | ||
You'll need to have v3.7.1 of the protocol-buffer/protobuf compiler installed. (v3.7.1 is known to be compatible, and 3.11.x is known to be **not** compatible.). | ||
|
||
1. Install the proto compiler by either | ||
1. Brew installing - `brew install [email protected]` | ||
1. Manually installing from an [official release](https://github.com/protocolbuffers/protobuf/releases/tag/v3.7.1). There are [installation instructions](https://github.com/protocolbuffers/protobuf#protocol-compiler-installation), but these steps have worked well for us: | ||
```sh | ||
mkdir protobuf-install && cd protobuf-install | ||
curl -L -o protobuf-python-3.7.1.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-python-3.7.1.zip | ||
unzip protobuf-python-3.7.1.zip | ||
cd protobuf-3.7.1 | ||
|
||
cd python | ||
python setup.py build | ||
python setup.py test | ||
(cd .. && autogen.sh && configure && make) | ||
(cd .. && sudo make install) | ||
python setup.py build --cpp_implementation | ||
sudo python setup.py install --cpp_implementation | ||
``` | ||
1. Run `yarn test-proto` | ||
|
||
## Proto Resources | ||
- [Protobuf Github Repo](https://github.com/protocolbuffers/protobuf) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,31 +274,6 @@ yarn | |
yarn build-all | ||
``` | ||
|
||
#### installing protobuf | ||
If changing audit output, you'll need to have v3.7.1 of the protocol-buffer/protobuf compiler installed. (v3.7.1 is known to be compatible, and 3.11.x is known to be **not** compatible.). | ||
|
||
Homebrew should be able to install it correctly: `brew install [email protected]` | ||
|
||
But if you want to do it manually, these steps that have worked well for us: | ||
|
||
```sh | ||
mkdir protobuf-install && cd protobuf-install | ||
curl -L -o protobuf-python-3.7.1.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-python-3.7.1.zip | ||
unzip protobuf-python-3.7.1.zip | ||
cd protobuf-3.7.1 | ||
|
||
cd python | ||
python setup.py build | ||
python setup.py test | ||
(cd .. && autogen.sh && configure && make) | ||
(cd .. && sudo make install) | ||
python setup.py build --cpp_implementation | ||
sudo python setup.py install --cpp_implementation | ||
``` | ||
|
||
Also, see the [official installation instructions](https://github.com/protocolbuffers/protobuf#protocol-compiler-installation). | ||
|
||
|
||
### Run | ||
|
||
```sh | ||
|
gpl-3.0.txt