Coder Social home page Coder Social logo

Comments (14)

kevinxutg avatar kevinxutg commented on August 20, 2024 1

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.

CarlJi avatar CarlJi commented on August 20, 2024

Yes, since we think it may be enough to meet the following scenarios:

  • compile a single binary, use goc build . under the main 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.

majian0012002 avatar majian0012002 commented on August 20, 2024

是的,我们代码混合了c++和go,需要在makefile中集中处理编译阶段,指定package对我们来讲是必要的。并且我认为这是一个很基础的能力,应该让goc build跟go build的使用方式尽量保持一致

from goc.

CarlJi avatar CarlJi commented on August 20, 2024

Sure. Let's put this issue into backlog.

from goc.

RicardoHa avatar RicardoHa commented on August 20, 2024

请问main方法所在文件一定要命名为main.go嘛?对编译的项目的文件路径有什么要求吗?

from goc.

RunningSnail999 avatar RunningSnail999 commented on August 20, 2024

当前有版本支持指定编译入口了吗

Yes, since we think it may be enough to meet the following scenarios:

  • compile a single binary, use goc build . under the main 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.

cnlydia avatar cnlydia commented on August 20, 2024

goc问题

go build -o 是支持保存输出到指定路径下的,但是这个goc build -o的话,不会保存在路径下,只会生成一个这个路径的文件,这个说明文档看起来的是有歧义的

from goc.

ankitjain1510 avatar ankitjain1510 commented on August 20, 2024

@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.

ankitjain1510 avatar ankitjain1510 commented on August 20, 2024

@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.

kevinxutg avatar kevinxutg commented on August 20, 2024

@ankitjain1510 I have tried the so-called v2 and it looks better. Hope it can help you a little bit.

from goc.

ankitjain1510 avatar ankitjain1510 commented on August 20, 2024

@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.

kevinxutg avatar kevinxutg commented on August 20, 2024

@ankitjain1510 There is a branch called "v2".

from goc.

ankitjain1510 avatar ankitjain1510 commented on August 20, 2024

@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.

kevinxutg avatar kevinxutg commented on August 20, 2024

@ankitjain1510 I guess not. Maybe you can translate it by ChatGPT...

from goc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.