Coder Social home page Coder Social logo

Comments (7)

erizocosmico avatar erizocosmico commented on August 25, 2024

I cannot reproduce this error. Can you share the steps you went through to get this error? Are all go-mysql-server dependencies up to date in your vendor folder as well?

from go-mysql-server.

drauschenbach avatar drauschenbach commented on August 25, 2024

@erizocosmico I created an environment to reproduce.

from go-mysql-server.

erizocosmico avatar erizocosmico commented on August 25, 2024

It's because dep is getting the latest vitess version, which has missing things go-mysql-server needs. go-mysql-server uses go modules to manage dependencies, so using go modules should make the problem go away.
If by any reason you can not use go modules and are stuck with dep you should pin the vitess version to v3.0.0-rc.3.0

from go-mysql-server.

drauschenbach avatar drauschenbach commented on August 25, 2024

I see. Thank you.

from go-mysql-server.

bombsimon avatar bombsimon commented on August 25, 2024

@erizocosmico I know this issue is closed but maybe you can help me out. I'm using go mod but I can't get this to work.

$ mkdir x && cd x

$ go mod init github.com/bombsimon/x
go: creating new go.mod: module github.com/bombsimon/x

$ go get github.com/src-d/go-mysql-server
go get: github.com/src-d/[email protected]: parsing go.mod:
        module declares its path as: gopkg.in/src-d/go-mysql-server.v0
                but was required as: github.com/src-d/go-mysql-server

# Explicit version
$ go get github.com/src-d/[email protected]
go: finding github.com/src-d v0.5.1
go: finding github.com v0.5.1
go get: github.com/src-d/[email protected]: parsing go.mod:
        module declares its path as: gopkg.in/src-d/go-mysql-server.v0
                but was required as: github.com/src-d/go-mysql-server

# Or older version
go get github.com/src-d/[email protected]
go: finding github.com/src-d v0.4.0
go: finding github.com v0.4.0
go get: github.com/src-d/[email protected]: parsing go.mod:
        module declares its path as: gopkg.in/src-d/go-mysql-server.v0
                but was required as: github.com/src-d/go-mysql-server

Above output is with go1.13, same issue with go1.12 (but another error message).

$ go1.12.10 get github.com/src-d/go-mysql-server
go: github.com/src-d/[email protected]: parsing go.mod: unexpected module path "gopkg.in/src-d/go-mysql-server.v0"
go: error loading module requirements

Seems to be working with other projects with go modules:

$ go get github.com/sirupsen/logrus
go: downloading golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: extracting golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894

$ cat go.mod
module github.com/bombsimon/x

go 1.13

require github.com/sirupsen/logrus v1.4.2 // indirect

Any advice?

from go-mysql-server.

erizocosmico avatar erizocosmico commented on August 25, 2024

@bombsimon oh, I see the last release is from before migrating from gopkg.in.

In this case, use:

go get github.com/src-d/go-mysql-server@ b09e8c1c8ab906a3a90cf76115c0a3fc5ee4470a

or any other commit hash to get a specific revision (that one is the master revision right now).

I just asked the maintainer for a new version so this problem goes away without resorting to pinning a specific commit.

from go-mysql-server.

bombsimon avatar bombsimon commented on August 25, 2024

@erizocosmico: Thank you so much! I've yet to fully understand some of those special cases regarding go mod but that seems like an easy fix. :) Again, thanks!

from go-mysql-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.