Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(network): correct opinetcommon makefile with buf
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sanders <[email protected]>
sandersms committed Nov 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c73b47a commit 29cfb1b
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
@@ -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

0 comments on commit 29cfb1b

Please sign in to comment.