New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Go modules #309
Add Go modules #309
Conversation
tabs only for Go
One note here, it's usually a bad idea to opt in to modules without bumping the major version. |
@dylan-bourque Thanks for the heads up. Do you have any pointers as to what could break? I was thinking of this being a minor release update until you chimed in. |
It's been a while since https://gitlab.com/gifts/uuid/issues/61 so I don't recall all the details. IIRC it was a bigger problem if your repo was already v2+, but in the abstract enabling support for modules is a non-trivial change in behavior. One noticeable thing is that importers who aren't using modules will get the last commit where In contrast, though, bumping to v2 would also mean that every importer would have to change their import path (adding TBH, I don't know what the right path is I just didn't want to not say anything. |
That's confusing. So rather than getting the latest commit from master, no Go-modules users would be stuck on the current 1.4.7 until they switch? (Assuming they are using Go 1.11+)? |
Maybe it's the other way around and non-modules importers always get Either way, the confusion was a big part of the advice to bump major versions when enabling modules. |
I'm pinging #modules on Slack for some advice. Thanks for bringing this up. |
I was going suggest exactly that. |
It looks like gofrs/uuid#61 was v3. So I think we're okay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
@@ -0,0 +1,5 @@ | |||
module github.com/fsnotify/fsnotify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nathany Was it an intentional change from https://gopkg.in/fsnotify.v1, or a mistake?
EDIT: ok, found https://github.com/go-fsnotify/fsnotify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An intentional change.
What does this pull request do?
Add Go modules
Where should the reviewer start?
go.mod
How should this be manually tested?
n/a