7 ms·
gofmt, sure. Consistency in style is great. But GOPATH was a mistake in the same way Go's hitherto lack of versioning was: it deliberately breaks easy isolatio
by stormbeta 9y ago
gofmt, sure. Consistency in style is great.
But GOPATH was a mistake in the same way Go's hitherto lack of versioning was: it deliberately breaks easy isolation between projects / dependency management.
This mindset only works if you control most of the ecosystem (such as with a monorepo), but it's a irritating mess otherwise.
- slrz 9y agoBut you do control all the source code within your GOPATH! It's right there on your file system. There's also a mechanism to take control of the same code even when it's outside your GOPATH. Github calls this mechanism a "pull request".