Skip to content

Try install and get the error #567

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

Closed
romani-dev opened this issue Apr 11, 2021 · 3 comments · Fixed by #571
Closed

Try install and get the error #567

romani-dev opened this issue Apr 11, 2021 · 3 comments · Fixed by #571

Comments

@romani-dev
Copy link

hi!

go.mod

module github.com/my/project

go 1.15

require github.com/go-mysql-org/go-mysql v1.1.1

So i run go mod tidy and receive the follow error:

go: github.com/go-mysql-org/[email protected]: parsing go.mod:
        module declares its path as: github.com/siddontang/go-mysql
                but was required as: github.com/go-mysql-org/go-mysql
@lance6716
Copy link
Collaborator

We renamed the repo some days ago. Could you help us fix this error?

@atercattus
Copy link
Member

It seems we need to change our imports to a new project path (with a new semver tag).

We can still use require github.com/siddontang/go-mysql in all go.mods, but for require github.com/go-mysql-org/go-mysql I cannot find any working solution.

@lance6716
Copy link
Collaborator

lance6716 commented Apr 16, 2021

Now I could run the example in README with following go.mod

module github.com/my/project

go 1.15

require (
	github.com/go-mysql-org/go-mysql master
)
$ go mod tidy
go: finding github.com/go-mysql-org/go-mysql master

go.mod become

module github.com/my/project

go 1.15

require (
	github.com/go-mysql-org/go-mysql v1.1.2-0.20210416072330-2a68c0ee612a
	github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants