Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor package structure to move generated code to language-specific folders #6

Merged
merged 3 commits into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Dependency directories (remove the comment below to include it)
# vendor/

# IDE
.idea
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ONOS_BUILD_VERSION := v0.6.6
ONOS_PROTOC_VERSION := v0.6.6
BUF_VERSION := 0.27.1

all: protos

test: # @HELP run the unit tests and source code validation
test: protos license_check

Expand All @@ -24,16 +26,15 @@ buflint: #@HELP run the "buf check lint" command on the proto files in 'api'

protos: # @HELP compile the protobuf files (using protoc-go Docker)
protos:
docker run -it -v `pwd`:/go/src/github.com/onosproject/onos-api \
-w /go/src/github.com/onosproject/onos-api \
docker run -it \
-v `pwd`:/onos-api \
-w /onos-api \
--entrypoint build/bin/compile-protos.sh \
onosproject/protoc-go:${ONOS_PROTOC_VERSION}

publish: # @HELP publish version on github and dockerhub
./../build-tools/publish-version ${VERSION}

all: test

clean: # @HELP remove all the build artifacts
rm -rf ./build/_output ./vendor

Expand Down
Loading