You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "izliang (via GitHub)" <gi...@apache.org> on 2023/09/17 06:39:07 UTC

[GitHub] [incubator-hugegraph-toolchain] izliang commented on a diff in pull request #514: feature : add go client

izliang commented on code in PR #514:
URL: https://github.com/apache/incubator-hugegraph-toolchain/pull/514#discussion_r1328052179


##########
hugegraph-client-go/Makefile:
##########
@@ -0,0 +1,58 @@
+# init project path
+HOMEDIR := $(shell pwd)
+OUTDIR  := $(HOMEDIR)/output
+
+# 设置编译时所需要的 go 环境
+export GOENV = $(HOMEDIR)/go.env
+
+GO      := go
+GOMOD   := $(GO) mod
+GOBUILD := $(GO) build
+GOTEST  := $(GO) test -race -timeout 30s -gcflags="-N -l"
+GOPKGS  := $$($(GO) list ./...| grep -vE "vendor")
+
+# test cover files
+COVPROF := $(HOMEDIR)/covprof.out  # coverage profile
+COVFUNC := $(HOMEDIR)/covfunc.txt  # coverage profile information for each function
+COVHTML := $(HOMEDIR)/covhtml.html # HTML representation of coverage profile
+
+# make, make all
+all: prepare compile package
+
+set-env:
+	$(GO) env 
+
+
+#make prepare, download dependencies
+prepare: gomod
+
+gomod: set-env
+	$(GOMOD) download -x || $(GOMOD) download -x
+
+#make compile
+compile: build
+
+build:
+	$(GOBUILD) -o $(HOMEDIR)/go-hugegraph

Review Comment:
   I will modify it



##########
hugegraph-client-go/Makefile:
##########
@@ -0,0 +1,58 @@
+# init project path
+HOMEDIR := $(shell pwd)
+OUTDIR  := $(HOMEDIR)/output
+
+# 设置编译时所需要的 go 环境
+export GOENV = $(HOMEDIR)/go.env
+
+GO      := go

Review Comment:
   I will modify it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org