Comments (14)
Yes, we also use the makefile and specify each build target with the go build package. Please consider it as it's a basic capability of "go build". Otherwise, we have to leverage other solutions.
BTW, since go 1.20 support integration testing code coverage. What's the road map of this project for the future?
from goc.
Yes, since we think it may be enough to meet the following scenarios:
- compile a single binary, use
goc build .
under themain
package - compile multi services, use
goc install ./...
I am wondering do you have a strong requirement to let goc works also like go build [packages]
? @majian0012002
from goc.
是的,我们代码混合了c++和go,需要在makefile中集中处理编译阶段,指定package对我们来讲是必要的。并且我认为这是一个很基础的能力,应该让goc build跟go build的使用方式尽量保持一致
from goc.
Sure. Let's put this issue into backlog.
from goc.
请问main方法所在文件一定要命名为main.go嘛?对编译的项目的文件路径有什么要求吗?
from goc.
当前有版本支持指定编译入口了吗
Yes, since we think it may be enough to meet the following scenarios:
- compile a single binary, use
goc build .
under themain
package- compile multi services, use
goc install ./...
I am wondering do you have a strong requirement to let goc works also like
go build [packages]
? @majian0012002
from goc.
go build -o 是支持保存输出到指定路径下的,但是这个goc build -o的话,不会保存在路径下,只会生成一个这个路径的文件,这个说明文档看起来的是有歧义的
from goc.
@kevinxutg With 1.20, I am still doubtful that Golang will support generating the code coverage remotely from the applications running in many different machines or containers.
from goc.
@CarlJi Do you have a plan to support this enhancement? Most of our builds are done using command
go build -mod=vendor -o bin/Core ./cmd/server
.
If not, can you suggest any workaround regarding how to use goc build
command to generate the instrumented binary?
from goc.
@ankitjain1510 I have tried the so-called v2 and it looks better. Hope it can help you a little bit.
from goc.
@kevinxutg Thanks for the update. Is v2.0 already released? Where can I find the documentation which will help me to try it out?
from goc.
@ankitjain1510 There is a branch called "v2".
from goc.
@kevinxutg I see. README in that branch https://github.com/qiniu/goc/tree/v2 is in Chinese. Is there any English README for it?
from goc.
@ankitjain1510 I guess not. Maybe you can translate it by ChatGPT...
from goc.
Related Issues (20)
- Proposal: support Generics
- go cover不能生成可编译的打桩代码 HOT 4
- goc-v2编译时指定了LD_LIBRARY_PATH貌似不起作用 HOT 1
- goc v2版列出服务列表命令后希望能刷新.goc.kvstore文件
- 文件实际上是一个符号链接(symlink), 会build失败
- 我们这边一个项目部署之后会出现多个服务,这时候注册到goc-center的pod会缺失,请问有啥办法解决吗
- 请教下同一个版本内发布了多次代码,如何统计全量的覆盖率 HOT 5
- 请问: goc是否支持分支覆盖率统计
- 对于打包镜像和部署容器非同一个的情况
- 公司内部服务统一了出口ip,有什么解决办法吗
- goc build --center=<远程goc server>成功后,没有生成xx_profile_listen_addr文件。 HOT 2
- goc build --singleton 时 如何获取coverage file HOT 1
- FATA Fail to build: fail to generate new go.mod: ... invalid go version '1.22.0': must match format 1.23 HOT 2
- goc运行大概8天就会重启一次,重启时的日志如下
- dump 代码覆盖率报错 HOT 4
- 重命名的文件,会被merge一起 HOT 2
- goc clear清理覆盖率失败了
- goc build main.go报错 HOT 5
- @CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错 HOT 3
- goc 目前支持1.19吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goc.