Skip to content

Non-standard Go Module Version Import Path Issue #1244

@yanglaolee

Description

@yanglaolee

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

  1. Add the dependency in a go.mod file: github.com/elys-network/elys v3.0.0-rc6
  2. Run go mod tidy
  3. 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 /v3 directory in the repository with the appropriate go.mod file
  • Or update the go.mod file to change the module path to github.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions