Skip to content

go.mod module for v2 versions should be with v2 postfix #255

@agurinov

Description

@agurinov

Hi!
If I use install from readme go install github.com/segmentio/topicctl/cmd/topicctl@latest the latest v1 major will be installed:

go: downloading github.com/segmentio/topicctl v1.23.1
...

If I use v2 (as documented in go versioning) version of install command go install github.com/segmentio/topicctl/v2/cmd/topicctl@v2.0.1
the error occcures:

go: github.com/segmentio/topicctl/v2/cmd/topicctl@v2.0.1: github.com/segmentio/topicctl@v2.0.1: invalid version: module contains a go.mod file, so module path must match major version ("github.com/segmentio/topicctl/v2")

The fix is pretty simple: in go.mod module should be renamed to module github.com/segmentio/topicctl/v2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions