-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add go module support #5
Comments
So what I can gather from the comments on the migration thread, he is leaning towards archiving and making a manual reference to the new repo, rather than a transfer. So in this case we would be pretty much open do what we want in terms of release. So I guess the easiest for the user would be to start with a fresh v1.0.0. BUT I would suggest first patching at least the one mentioned CVE about |
Update to this as I realised this after writing: If pkg.go.dev / godoc.org already knows about these existing releases on the new "namespace", we have a problem if we reach a v2/v3, etc. and re-release the same tags/releases that existed before. Not sure if we are already indexed by the go documentation site (probably). |
How would this work with the |
@oxisto Great points
Indeed we should patch that issue dgrijalva/jwt-go#428 before tagging a stable v1. Ideally we can either cherry pick the existing fix (iirc this was addressed in the v4 preview branch) or copy/paste. This will keep parity between the repos. I think its safe to remove the existing tags and keep this repo untagged for now as a v0. If the repo already got cached in the process we can request it be removed. https://go.dev/about/ > Removing a package So, any objections to removing the existing versions and going with a v0 -> v1 approach (patched)? |
Once there is a proper version and a go.mod file within the repo, the
Alternatively, users can fetch the new module, search/replace the import paths, and then Great point thought, we'll add a pinned issue or a README section for the various migration options. |
Might need to be tested. I recall having to use a fork of another repo, but |
We seem to be in luck, that https://pkg.go.dev/github.com/golang-jwt/jwt did not have it cached yet. It still shows the "request" button, which I dare not to click :) In any case, clicking it will probably fail because currently we still have to old module path. But good news after all, meaning that we will not run into conflicts with later releases. |
Is it possible to publish a minor tag github.com/golang-jwt/jwt@v3.2.1 with CVE-2020-26160 fixed then later move to github.com/golang-jwt/jwt/v4/ for next major release?? |
#3 adds module support. Thank you @sadmansakib @lggomez @oxisto @Waterdrips Once this is merged we are more/less committed to a particular release cycle. Just want to get some 👀 to make sure we're on the same page There are currently no tagged versions which effectively introduces golang-jwt/jwt as a v0. My suggestion would be to tag the module as /v1 once the security issue is addresses. If done in a backwards-compatible way, From there we can continue improving the repo in a backwards-compatible way on the /v1 branch, or if necessary introduce a breaking /v2 |
Looks good, let's go for it. |
The existing project https://github.com/dgrijalva/jwt-go had no module support and was likely imported as:
There was also a v4 that never got fully released.
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:
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.
The text was updated successfully, but these errors were encountered: