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

Closed
owenthereal opened this issue Dec 9, 2013 · 3 comments
Closed

go/build: Build API #6920

owenthereal opened this issue Dec 9, 2013 · 3 comments

Comments

@owenthereal
Copy link

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
Copy link
Contributor

adg commented Dec 10, 2013

Comment 1:

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

Status changed to Accepted.

@owenthereal
Copy link
Author

Comment 2:

Any update on this?

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@ALTree
Copy link
Member

ALTree commented Jun 28, 2019

This is essentially #15108. This issue is older, but the other one has more discussion. Closing here.

@ALTree ALTree closed this as completed Jun 28, 2019
@golang golang locked and limited conversation to collaborators Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants