Skip to content

Add go module support #5

@mfridman

Description

@mfridman

The existing project https://github.com/dgrijalva/jwt-go had no module support and was likely imported as:

github.com/dgrijalva/jwt-go v3.2.0+incompatible

There was also a v4 that never got fully released.

go get github.com/dgrijalva/jwt-go@v4.0.0-preview1
go get: github.com/dgrijalva/jwt-go@v4.0.0-preview1: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v4

Since users would import a new module anyways, one solution could be drop all existing versions (14 total) and start with a fresh v1.0.0 (hopefully no breaking changes required).

For many of my projects I see this being a basic search/replace operation:

- github.com/dgrijalva/jwt-go v3.2.0+incompatible
+ github.com/golang-jwt/jwt v1.0.0

The version in this case is irrelevant afaics.


Lastly, I am not sure whether the original repo will get "transferred" or "archived" (see comment here), but if it gets transferred then this might change the outcome of how to proceed adding module support?

Thoughts, suggestions welcome.

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