go-sqlite3: Can't upgrade to version 2.0.5

I can’t upgrade to version 2.0.5 on go 1.14:

$ go get -u github.com/mattn/go-sqlite3@v2.0.5
go: finding github.com/mattn/go-sqlite3 v2.0.5
go get github.com/mattn/go-sqlite3@v2.0.5: github.com/mattn/go-sqlite3@v2.0.5: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

I suspect this is because go-sqlite3 does not respect the go module semantic versioning path. I’ll try to send a fix.

Related: https://github.com/golang/go/issues/35732

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

@mattn, you could resume v1.14.0 as the “latest” release (per https://golang.org/doc/go1.14#incompatible-versions), or change the import path to …/v2 or …/v3.

(Semantic import paths are, by design, not optional.)

@bcmills Any way to fix this issue without make v2 ?

BTW, If I move this repository into another places, Am I possible to restart to make version v0.0.1 ?

If you’re willing to use a brand new module path, then it’s possible.

GORM v2 just did it. Its author transferred the project from his personal account to the go-gorm/gorm, and maintained the original project jinzhu/gorm as a fork. By doing so, he can keep existing users from being broken. And, most importantly, he can safely clear all tags and start over with a brand new module path gorm.io/gorm that is different from the old github.com/jinzhu/gorm.

BTW, I just saved you the GitHub username go-sqlite3, I can transfer it to you if you want. 😃