Skip to content

Commit

Permalink
fix(network) correct opinetcommon makefile with buf
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 16, 2023
1 parent c73b47a commit d5f03ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions network/opinetcommon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Copyright (C) 2022 Intel Corporation
# Copyright (c) 2022 Dell Inc, or its subsidiaries.

all: doc buf
all: buflint doc

buf:
buf lint
buflint:
# buf lint
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 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

doc:
rm -rf ./google
Expand Down

0 comments on commit d5f03ff

Please sign in to comment.