Skip to content

Commit 2056411

Browse files
authored
Merge pull request #111 from dibenede/main
Fixup build and docs after move to standalone repo
2 parents 32c0a48 + 5114972 commit 2056411

File tree

2 files changed

+155
-192
lines changed

2 files changed

+155
-192
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,19 @@ If you want, you can compile `protoc` from source instead. To do this
3737
follow the instructions in [the top-level
3838
README](https://github.com/protocolbuffers/protobuf/blob/main/src/README.md).
3939

40-
Once you have `protoc` compiled, you can run the tests provided along with our project to examine whether it can run successfully. In order to do this, you should download the Protocol Buffer source code from the release page with the link above. Then extract the source code and navigate to the folder named `js` containing a `package.json` file and a series of test files. In this folder, you can run the commands below to run the tests automatically.
40+
Once you have `protoc` compiled, you can run the tests provided along with our
41+
project to examine whether it can run successfully. In order to do this, you
42+
should download the Protocol Buffer source code from the release page with the
43+
link above. Then extract the source code and navigate to the folder named `js`
44+
containing a `package.json` file and a series of test files. In this folder, you
45+
can run the commands below to run the tests automatically.
4146

4247
$ npm install
43-
$ npm test
48+
$ PROTOC_INC=/usr/include/google/protobuf npm test
4449

45-
# If your protoc is somewhere else than ../src/protoc, instead do this.
46-
# But make sure your protoc is the same version as this (or compatible)!
47-
$ PROTOC=/usr/local/bin/protoc npm test
50+
`PROTOC_INC` specifies the protobuf include path. By default, we use `protoc`
51+
located from `PATH`. Optionally, you can use the `PROTOC` enviroment variable to
52+
specify an alternative `protoc`.
4853

4954
This will run two separate copies of the tests: one that uses
5055
Closure Compiler style imports and one that uses CommonJS imports.

0 commit comments

Comments
 (0)