Closed guregu closed 1 year ago
from what I understand of that versioning model, we should have v1 from the root, and v2 in the v2/
folder?, both in the same tree? Or we could have only v2 in the repository, since v1 should not be used anymore
It's pretty confusing, but my understanding is you have two options:
AFAIK, both of these should work. I went with the 2nd option because it was closer to what the current state of the main branch is, but the 1st approach should also be fine I think.
thanks!
I believe this also requires there to be a git tag of >= v2.0.0
applied to the latest commit that belongs in this version, currently go is complaining about having a v1 version with a v2 module path:
github.com/biscuit-auth/biscuit-go@v1.0.1-0.20221212205437-370cd7c6a478: invalid version: go.mod has post-v1 module path "github.com/biscuit-auth/biscuit-go/v2" at revision 370cd7c6a478
As outlined in #104, it's currently impossible to import v2 of this package. This PR fixes the issue with the "release version in go.mod URL" strategy.
I've tested this at https://github.com/guregu/biscuit-go and it looks like it works well.