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
v1.4.8 - issue with go.mod [gopkg.in no longer supported] #328
Comments
Indeed gomods does some weird things here... I'm not sure what's actually being used:
Possibly because example_test.go imports from the github URL. |
Please see the readme at https://github.com/go-fsnotify/fsnotify for the reason why gopkg.in is no longer supported. Maybe there is a gomod replace rule that would resolve this temporarily but the real fix is to patch ginkgo (or other libraries) to use the correct import path. |
Does a replace rule in go.mod solve it? Something like this:
|
1.4.9 allows the replace statement to work:
|
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
With the
Which seems to be a golang issue: golang/go#26904 I guess there is another dependency somewhere which hasn't updated the path and some which are using the right one. |
I then tried to fork fsnotify and use the fork as a replacement for the package from
Edit: I guess that makes sense because I forked from github. I'll try to change the name. |
Changed the name in the fork and "fixed" it that way:
|
Why not update your import statements to use the module path instead of gopkg.in? |
@cpuguy83 Because fsnotify is used by a dependency of a dependency of a dependency in my project where I have absolutely no way of changing that. |
may resolve fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Root cause of the build issue: - fsnotify/fsnotify#328
Which operating system (GOOS) and version are you using?
Please describe the issue that occurred.
Hi, I'm not entirely sure this is your problem but I thought I would bring it up here anyway.
It seems that as you guys have moved away from pkg.in, when you bumped the version to 1.4.8 it also made pkg.in bump it's version to that.
As you have referenced your github url in the go.mod file, anything that is referencing pkg.in/fsnotify.v1 in an import is now broken.
Here is an example
As I said at the top, I'm not really sure this is your problem but I suspect others will come looking for answers, so here it is.
The only thing you might have done would be to bump the version to 2 so the v1 would have stayed on 1.4.7 and not broken things in the wild.
If I've got anything wrong about the above please accept my apologies :)
The text was updated successfully, but these errors were encountered: