-
Notifications
You must be signed in to change notification settings - Fork 18k
proposal: cmd/go: support build customization with a build.go file #20177
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
Comments
Similar ideas have been suggested before. I was not successful at finding the ones I remember seeing, but #19849 is a recent example. The general idea is that I also don't think this proposal is detailed enough. What exactly would you do in such a Also note that some projects already use custom build systems like I don't think I have the authority to decline proposals, so I'll let someone else decide. But I'm fairly sure this was ruled out in the Go design on purpose. |
it is related with golang/dep#269 |
Blocked on dependency management. |
Dependency management is essentially done at this point, so removing |
This also goes against Go's work in supply chain security: https://go.dev/blog/supply-chain
|
As noted by @seankhliao this runs directly against the design of Go's dependency management. |
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely decline. |
No change in consensus, so declined. |
Having used Rust and Cargo for a bit before coming back to Go for a new project, one thing I really miss is scripted builds. Cargo supports a
build.rs
file that is compiled and then run to do things like locate native dependencies and generate source files. The output of the build "script" specifies library search paths, compiler options, features (build tags), etc. It would be really great if something similar could be accomplished with Go projects fetched withgo get
and/ordep
. I haven't really thought about the overall design or impact of such a feature, but Cargo's would be a good model to consider.The text was updated successfully, but these errors were encountered: