-
Notifications
You must be signed in to change notification settings - Fork 86
Description
Non-standard Go Module Version Import Path Issue
Problem Description
When attempting to import github.com/elys-network/elys v3.0.0-rc6, I encountered the following error:
go: github.com/elys-network/elys/[email protected]: go.mod has non-.../v3 module path "github.com/elys-network/elys" (and .../v3/go.mod does not exist) at revision v3.0.0-rc6
Technical Details
According to the Go module system's semantic versioning rules, when a module's major version is greater than 1 (e.g., v3.x.x), the import path should include the version suffix. For example, a v3 version module path should be github.com/elys-network/elys/v3.
However, the current v3.0.0-rc6 version of the elys repository still uses github.com/elys-network/elys as the module path, which doesn't conform to Go module versioning conventions, making it impossible for users to import the module normally.
Steps to Reproduce
- Add the dependency in a go.mod file:
github.com/elys-network/elys v3.0.0-rc6 - Run
go mod tidy - Encounter the error mentioned above
Expected Solution
Please consider one of the following solutions:
Create a version structure that complies with Go module standards:
- Add a
/v3directory in the repository with the appropriatego.modfile - Or update the
go.modfile to change the module path togithub.com/elys-network/elys/v3
Environment Information
- Go version: 1.24.1
- Operating System: Ubuntu 22.04
- Elys version: v3.0.0-rc6
Thank you for your attention to this issue.