Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/build: Build API #6920

Open
jingweno opened this issue Dec 9, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@jingweno
Copy link

commented Dec 9, 2013

Proposal: Add a build API for building Go program in go/build.

Context: `go build` and `go test` use an internal build API to build a Go program
(http://golang.org/src/cmd/go/build.go?#L359). It'd be nice that the API is available to
third party software as well. Google Group discussion is here
(https://groups.google.com/forum/#!topic/golang-nuts/0FBoVbLyfkw).

Use Case: `gotask` (https://github.com/jingweno/gotask) adopts similar approach as `go
test` to write and run task functions. Similar to how `go test` compiles and run test
functions, `gotask` compiles task functions on the fly and run them. The difference is
`go test` uses an internal build API (http://golang.org/src/cmd/go/build.go?#L359) while
`gotask` uses the `go build` command. I'm wondering if it makes sense to add a new build
API for building Go program in go/build so that 3rd party software can make use of. 

Thanks,
Owen
@adg

This comment has been minimized.

Copy link
Contributor

commented Dec 10, 2013

Comment 1:

Labels changed: added release-none, size-xl, repo-main.

Status changed to Accepted.

@jingweno

This comment has been minimized.

Copy link
Author

commented Jan 11, 2014

Comment 2:

Any update on this?

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@rsc rsc removed release-none labels Apr 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.