TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go Modules: v2 and Beyond

5 pointsby l2dyover 5 years ago

1 comment

harikbover 5 years ago
It hasn&#x27;t been clearly communicated how radical (unlike other languages) a change this is. Although well intentioned, this is going to waste a lot of hours for a lot of Go developers.<p>If there is any package out there that is already at a version higher than v2, they have to do some intrusive change. Moreover, since &quot;internal&quot; references to packages must also use the absolute path of each package, this even requires module developers to make changes all throughout the source code.<p>May be this was always a problem, but I find the blog text could use more detailed explanation. This is like the magic time of &quot;Mon Jan 2 15:04:05 MST 2006&quot; for Go timestamp parsing. Yes, it is a very neat trick, but you have to tell the users that you are explicitly doing something different from the norm.<p>&gt; Starting with v2, the major version must appear at the end of the module path<p>Here v2 refers to the version of the module, not Go.