Skip to content

Choice of tags breaks semantic versioning #491

Description

@nyetwurk

Bug Report

All tags are bad.

Summary

https://go.dev/ref/mod#versions

Major version suffixes

Starting with major version 2, module paths must have a major version suffix like /v2 that matches the major version. For example, if a module has the path example.com/mod at v1.0.0, it must have the path example.com/mod/v2 at version v2.0.0.

Current behavior

govalidator has all sorts of v10 and v11 tags.

How to reproduce

$ go get -u github.com/asaskevich/govalidator@v11.0.1
go: github.com/asaskevich/govalidator@v11.0.1: invalid version: module contains a go.mod file, so module path must match major version ("github.com/asaskevich/govalidator/v11")

Expected behavior

No output, but go.mod should have a github.com/asaskevich/govalidator/v11 in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions