-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
[epic] Remove GOPATH for go modules formula #47627
Comments
Looks like there are 291 formula that still use GOPATH.
|
While we're here - would it be worth standardizing some of the flags that we use for building Go formulae? Specifically, I would advocate for always including
|
It looks like Debian sets |
I think it would be useful. I've already seen some formulae floating around with stripped binaries, which is why I've brought this up. From my limited testing with the PRs above, there's a reduction of 15-20% in total formula size. I personally don't think it would be a bad idea to strip binaries, seeing as Go binaries are all statically linked. |
Maybe you want to wait @chenrui333 and do gopath at the same time as the |
+1 for We can definitely pipeline the work between |
All right! we are all done ( i think). We have PRs for all the tools listed in @carlocab's comment. While we have filed issues with a LOT of the tools there I doubt that many of them will actually upgrade to go modules by the time go1.17 is out. Would the idea be to deprecate them or disable them or add a go1.16 formula when that time comes? |
Possibly both - we could deprecate as "unmaintained" if there is no response, but we'll let them depend on I'm very likely going to start tests with 1.17 RC1 when that lands rather than the final version so that we're better prepared. For 1.16: we just now need to double check a couple of the other failures but they should be easy to prove they are pre-existing or not and then we can rebase on master (with the bootstrap change we agreed on in #71370 (comment)). |
Thanks very much for all the help, @roopakv. There are still a handful of formulae that don't use |
Is this still a problem with current Go versions? |
It generally is not a problem (using I may make one more pass through the list and post remaining items as a comment (for posterity). We can continue working on it if preferred or close this soon. |
Upstream
|
I would like to contribute to this Project |
Go for it |
can anyone guide me |
Hi @rahul3002, I encourage you to take a look at our contributing guide for info on how to contribute in this repository (Homebrew/homebrew-core), which stores formulae (packages) for Homebrew. You may also be interested in contributing to the main You can also find more information relevant to contributing at our docs site. I would ask that you to take further questions to our Discussions forum, as this thread is dedicated to other purposes. Thanks for your interest! |
I see that the "in progress" label was removed but this issue is still open and there is still a "help wanted" label. What does that mean? |
Not sure for the in progress label. Looking at it, we have been working on this since 2019 ... so progress has been slow. There are less than 50 formulae where GOPATH could be removed, so any help finishing this task is welcome. |
Considering now we are at go 1.21, gonna use gopath deprecation for further tracking or formulae deprecations. |
Historically, golang builds need to happen under the GOPATH, as more and more formula has moved to go-modules, we can deprecate the GOPATH usage.
The text was updated successfully, but these errors were encountered: