News for hackers. Stuff that matters.
Re:Go Modules in 2019 by tptacek on Wednesday December 19, 2018 @12:27PM (#18717363)
I hated it at first but came around over time, to the point where I haven't switched to the modules workflow yet.
Re:Go Modules in 2019 by kasey_junk on Wednesday December 19, 2018 @01:12PM (#18717817)
The modules workflow is a wreck currently. Defer a while if you can.
Re:Go Modules in 2019 by vhost- on Wednesday December 19, 2018 @01:30PM (#18718006)
care to explain why? I've been using it across all my projects just fine.
Re:Go Modules in 2019 by kasey_junk on Wednesday December 19, 2018 @01:49PM (#18718162)
My biggest complaints are when something goes wrong. It will frequently silently fail or act like it succeeded. Diagnosing these errors has been a major time sink since I started using it.

Next have been oddities with vendoring workflows. Given previous decisions it seemed like the golang team was driving towards vendored solutions but with go mod they seem to have backed off of that position. The workflows with go mod are clunkier & less well documented. Unfortunately I’m (and my teams) are highly invested in vendored libraries.

We’ve also had trouble with it not playing nice with dependencies that have not taken up modules (and some that are unlikely to).

That’s not even to mention my problem with their design or the hamfisted way they have gone about it, which is something I just have to get past.

Re:Go Modules in 2019 by cyphar on Wednesday December 19, 2018 @12:31PM (#18717438)
I think a primary problem with the modules workflow is that you can't switch to it until all Go projects you work on switch to it. Plus, all of us have got our own GOPATH home-directory workarounds so there's no real point in switching anymore.
Re:Go Modules in 2019 by atombender on Wednesday December 19, 2018 @03:26PM (#18719217)
That's not true at all. A Go-modules-enabled project can import packages from a non-modules-enabled project that doesn't have Go.mod in it. This was always the case with Glide and Dep, too.
Re:Go Modules in 2019 by cyphar on Thursday December 20, 2018 @01:52AM (#18722990)
That's not what I'm talking about. I'm talking about being able to build outside of GOPATH. This requires the top-level project to use go.mod and many don't (like Docker for instance).
Re:Go Modules in 2019 by atombender on Friday December 21, 2018 @09:17PM (#18738490)
But that's not the same thing. You don't have to switch all the projects you work on over to Go modules at the same time, only the projects you want to upgrade. It's entirely possible to migrate incrementally.
Re:Go Modules in 2019 by Merovius on Wednesday December 19, 2018 @06:15PM (#18720873)
> I think a primary problem with the modules workflow is that you can't switch to it until all Go projects you work on switch to it

It seems this gets fixed in Go 1.12 though. AIUI you'll be able to set GOMODULES=on, unset GOPATH and just continue working as before.

Re:Go Modules in 2019 by w8rbt on Wednesday December 19, 2018 @01:37PM (#18718065)
Same here. Will wait until Aug 2019 when I have to think about it.