Closed tooolbox closed 4 years ago
Thanks for pointing out that this is causing you problems. That particular dependency is brought in by vitess, which implements the parser / server logic (as opposed to the execution engine that go-mysql-server provides).
We only use a small fraction of vitess, and we will be paring it down to get rid of this and other unused dependencies. In the meantime, you can solve this by introducing a replace directive in your project's go.mod.
Okay great, good to know.
Unfortunately I can't use a replace directive to rewrite one of those paths to the other; Go says something about not being able to have two different import paths point to the same package (sorry, I didn't save the error). Of course, I may have done it incorrectly. Either way, I appreciate it.
This is gone as of the the latest master. Haven't cut a release yet, waiting until I get triggers fully working.
Wow, great! Thanks for hitting this ❤️
Cool, let us know if you find any other problems!
The first primary use case of
go-mysql-server
is:When I imported it into my project, it errored due to an ambiguous import, as
go-mysql-server
imported a different version of Consul (???) than my project. Here's the essential bits of the log:I imagine that
go-mysql-server
isn't actually using the Consul API anywhere, it's just an accident of the dependency tree, but I think it's a tad overboard. If anything can be done to remove this dependency it would be appreciated.