$ go get github.com/e-chip/redis-rwlock/v1
go: finding github.com/e-chip/redis-rwlock latest
go: downloading github.com/e-chip/redis-rwlock v0.0.0-20191030182710-122e3f7ba621
go get github.com/e-chip/redis-rwlock/v1: go.mod has post-v0 module path "github.com/e-chip/redis-rwlock/v1" at revision 122e3f7ba621
After reexamine with the go module documentation. There is a statement in the section of Semantic Import Versioning:
If the module is version v0 or v1, do not include the major version in either the module path or the import path.
When running
go build
in my project, following error is shown:Failed to run
go get
with go module:After reexamine with the go module documentation. There is a statement in the section of Semantic Import Versioning:
Furthermore, the semver VCS tag is also required if you would like to support to get specific version by semver. (What happens if I create a go.mod but do not apply semver tags to my repository?)