blade-build
blade-build copied to clipboard
最新版本怎么build golang工程,文档太稀缺了,尝试保持和c++方式一致build规则报错没有成功
BUILD 如下: go_binary( name = 'cube-transfer', srcs = glob([ 'cube/cube-transfer/src/*.go', ]), deps = [] )
需要构建的golang目录 workspace_go | |--- TestGo | | | |--- src | | | | | |--- github.com | | | | | | | |--- golang | | | | | | | |--- glog | | | | | | | |--- LICENSE | | | | | | | |--- README | | | | | | | |--- glog.go | | | | | | | |--- glog_file.go | | | | | | | |--- glog_test.go | | | | | |--- hello | | | | | | | |--- hello.go | | | | | |--- main | | | | | |--- main.go | | | |--- bin | | | | | |--- main | | | | | |--- pkg | | | |--- github.com | | | | | |--- golang | | | | | |--- glog.a | | | |--- hello.a | |-- GoDemo
遇到几个问题: 1、我应该怎么写构建BUILD 2、如果进行依赖,比如依赖github.com/golang 3、gopath怎么指定
是的,go 的文档还在建设中,抱歉目前还不够完善。
采用了如下的临时方案替代,期待你们后续完美支持
gen_rule( name='cube-agent', cmd='sh ./go_build.sh cube-agent cube/cube-agent/src', outs=["cube-agent"], )
ths~
谢谢。go的确实还需要继续完善。有个明显的问题是和go自带的构建系统如何搭配有点尴尬
On Sat, Aug 15, 2020, 15:26 Robinth [email protected] wrote:
采用了如下的临时方案替代,期待你们后续完美支持 gen_rule( name='cube-agent', cmd='sh ./go_build.sh cube-agent cube/cube-agent/src', outs=["cube-agent"], ) ths~
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chen3feng/blade-build/issues/688#issuecomment-674362019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPH4STPEOTX27GGFFFRKB3SAY2CFANCNFSM4O2NZD3A .