Skip to content

Commit

Permalink
fix(makefile): enable docker generate with protoc installed image
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
  • Loading branch information
sandersms committed Nov 30, 2023
1 parent 29cfb1b commit dcd3ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/opinetcommon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ buflint:
docker run --rm -v "${PWD}/../../common/v1":/common -v "${PWD}":/out -w /out bufbuild/buf lint

bufgen:
buf generate --template ../../buf.gen.yaml -o v1alpha1
# buf generate --template ../../buf.gen.yaml -o v1alpha1
# buf generate does not work in docker since it relies on locally installed protoc to compile the proto files
# docker run --rm -v "${PWD}/../../common/v1":/common -v "${PWD}/../..":/base -v "${PWD}":/out -w /out bufbuild/buf generate --template /base/buf.gen.yaml -o v1alpha1
docker run --rm -v "${PWD}/../../common/v1":/common -v "${PWD}/../..":/base -v "${PWD}":/out -w /out msandersdell/bufbuild-go-gen:1.1.0 generate --template /base/buf.gen.yaml -o v1alpha1

doc:
rm -rf ./google
Expand Down

0 comments on commit dcd3ed9

Please sign in to comment.