--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/040e8124-7675-4767-9348-90ab88908ac8n%40googlegroups.com.
On Tue, Feb 16, 2021 at 12:34 PM Peter Kleiweg wrote:
>
> `go get` is broken. It doesn't download packages.
Tell us what you did, what you expected to happen, and what happened
instead. Thanks.
Note that module support is now on by default
(https://golang.org/doc/go1.16#go-command), which can affect the
behavior of "go get".
Ian
Also, you can't use local packages without a dot in the name.
nothing compiles any more!i seem to be being forced to add, to some projects 9 years old (unnecessary) module support, or, add notes to all their docs that they need to be compiled in versions older than 1.16, or have to have an obscure parameter set.there really wasn't a non-breaking way to do this?seems to me this has effectively become part of the language and should be implemented in accordance with the go1 backward compat. guarantee. what difference does it make to a user when things stop compiling like this.On Tuesday, 16 February 2021 at 19:56:37 UTC Alex Rakoczy wrote:
On Tue, Feb 23, 2021 at 5:03 PM 'simon place' via golang-nuts <golan...@googlegroups.com> wrote:nothing compiles any more!i seem to be being forced to add, to some projects 9 years old (unnecessary) module support, or, add notes to all their docs that they need to be compiled in versions older than 1.16, or have to have an obscure parameter set.there really wasn't a non-breaking way to do this?seems to me this has effectively become part of the language and should be implemented in accordance with the go1 backward compat. guarantee. what difference does it make to a user when things stop compiling like this.On Tuesday, 16 February 2021 at 19:56:37 UTC Alex Rakoczy wrote:Insufficient information. What command did you run? What was the output? Note that module mode is now the default with Go 1.16. You can get the Go 1.15 behavior by exporting GO111MODULE=auto. However, that will just punt the problem down the road. At some point in the future GOPATH mode will no longer be supported. You're probably better off biting the bullet now and switching to Go modules.
Insufficient information. What command did you run? What was the output? Note that module mode is now the default with Go 1.16. You can get the Go 1.15 behavior by exporting GO111MODULE=auto. However, that will just punt the problem down the road. At some point in the future GOPATH mode will no longer be supported. You're probably better off biting the bullet now and switching to Go modules.thanks, but i did read the tread.
> Insufficient information. What command did you run? What was the outputyou seem to not get it, i provide the go SOURCE in a repo, who ever wants to use it package will try to compile and now with 1.16 all will fail, without me retrospectively changing them all.
i guess i won't do anything, shame, just way too much work, i'll just have to rely on people knowing they need <1.16, (or the parameter) at least this will be so common a problem it will probably be well enough known.things like this, and i do this, if a new package doesn't work first time, i walk away.but then, thinking about it, what happens when you have a project with a mixture of moduled and non-moduled imports, very hard to get working? so if i don't put in the, completely unnecessary, work i may as well just scrap the lot.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8gGZOwnY%3D_gcs%2BayGeZgDjpCM%3DuHTe6HSuw9n945Qvow%40mail.gmail.com.
i had a similar experience where i ended up pull-requesting the addition of mod&sum into a dependency. fair enough for actively maintained packages or packages you've contributed to before but could be problematic otherwise. (insert any linux/bsd talk about contributing changes upstream here)it is not really reasonable to expect everyone to indefinitely maintain everything they put out there. this is a breaking change for old code in practice...even if it's more the toolchain than the source and consistent with the compatibility promise when carefully read. to be clear: i'm not criticising the change and like that i need to take action(s) now as opposed to an unknown time later.so a suggestion: a tool to scan for not-updated projects that does the mod&tidy, tests it, and sends a pull request. logistically that's a lot for an individual but should be workable for the go team (i am guessing). this would also have the advantage of finding truly orphaned projects -- if a maintainer doesn't reply in a week/month/whatever to an obviously-automatic-and-official request to fix something the package really should be forked. can't cover everything but whatever is on pkg.go.dev is a kind of all you can expect.and if anybody from the hosting/ci providers is here: providing free credits for this would be a nice way to show support for the ecosystem.or maybe this is just going to cause noise for a week and then every actively used package will be sorted or forked-and-then-sorted.