You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2021/05/12 12:50:26 UTC

[skywalking-banyandb] branch main updated: Format files after code generation

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


The following commit(s) were added to refs/heads/main by this push:
     new b5160b1  Format files after code generation
b5160b1 is described below

commit b5160b1603c33bdcf94bce762175239eb2bd45f9
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Wed May 12 20:49:34 2021 +0800

    Format files after code generation
    
    Signed-off-by: Gao Hongtao <ha...@gmail.com>
---
 Makefile         | 5 +++++
 api/fbs/Makefile | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a607d00..490aeb1 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,11 @@ PROJECTS := banyand
 clean: TARGET=clean test-clean
 clean: default  ## Clean artifacts in all projects
 
+generate: ## Generate API codes
+	$(MAKE) -C api/fbs generate
+	$(MAKE) license-fix
+	$(MAKE) format
+
 build: TARGET=all
 build: PROJECTS:=$(PROJECTS)
 build: default  ## Build all projects
diff --git a/api/fbs/Makefile b/api/fbs/Makefile
index 86af690..a775e9c 100644
--- a/api/fbs/Makefile
+++ b/api/fbs/Makefile
@@ -18,5 +18,5 @@
 
 VERSION := v1
 
-build:
+generate:
 	flatc --go --gen-onefile --go-namespace $(VERSION) -o $(VERSION) $(VERSION)/*.fbs