-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for using docker to regen derived files (#3489)
This is much cleaner than the previous approach of requiring protoc to be installed globally on the machine, which inevitably causes tensions with other projects that are developed on the same machine. We may want to consider building and publishing the Docker image in a repository so that people can just pull it and use it unless they are upgrading any of the tool versions (e.g. protoc). The changes to the `batchmap` code are the results of regenerating all files using these new instructions.
- Loading branch information
1 parent
6b4eb18
commit 05f1f7f
Showing
3 changed files
with
62 additions
and
33 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Installs the dependencies required to build this repo. | ||
set -eu | ||
|
||
main() { | ||
go install github.com/golang/mock/mockgen | ||
go install google.golang.org/protobuf/proto | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc | ||
go install golang.org/x/tools/cmd/stringer | ||
} | ||
|
||
main |