What’s a good practice regarding sharing the GOPATH?

I think it’s easier to have one $GOPATH per project, that way you can have different versions of the same package for different projects, and update the packages as needed.

With a central repository, it’s difficult to update a package as you might break an unrelated project when doing so (if the package update has breaking changes or new bugs).

Leave a Comment