-
Notifications
You must be signed in to change notification settings - Fork 188
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
Accidental deletion of modules go.mod files causing ambiguous imports #796
Comments
Well, the removals are actually intended, so that users don’t need additional |
The current module setup creates broken behavior in our examples. Specifically, users must first fetch the rueidis module before trying to use rueidisaside or rueidislimiter, which then indicates that no additional fetch is needed. This requirement disrupts the expected workflow. like in the go.dev examples. Having it as a module will respect the previous behavior and having an additional If this is the intended behavior then we must remove the separate go.mod file in rueidislimiter before the next release |
Which ones? Let's update those examples.
I prefer no additional go.mod files, but you added tests with gomock, so I think additional go.mod is fine.
Will there be problems other than an additional |
Try to run the go.dev examples in the description https://go.dev/play/p/KTVW5CW_2XJ You have to run it first with only rueidis being used to them be able to add the adapter or the limiter if you try to add both on a new project it fails
|
Hmm, I just tried the example, but what I only needed to do was Is that because you already used the old rueidis in your project? |
in that case it works because you try to load the rueidis first that is the case I mentioned before, try this with the main.go from the example
|
Ok, let’s add go.mod back. |
There were two incidents where module
go.mod
files were accidentally deleted:rueidislimiter
go.mod
was deleted in commit 34c5717rueidisaside
go.mod
was deleted in commit 87327f9RueidisAside:
https://go.dev/play/p/iC7P-EDfbff
RueidisLimiter:
https://go.dev/play/p/KTVW5CW_2XJ
Current Status
rueidislimiter
has been fixed after perf: reduce allocations in rueidislimiter #795, but a new release is still neededrueidisaside
still needs itsgo.mod
restoredrueidislock
was never a module in self so it's fine but maybe it should beThe text was updated successfully, but these errors were encountered: