Skip to content
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

Version tags after v0.2.0 are missing the v prefix and no longer usable in go.mod #452

Open
bduffany opened this issue Feb 2, 2023 · 0 comments

Comments

@bduffany
Copy link

bduffany commented Feb 2, 2023

When attempting to depend on rules_webtesting via go.mod (for the Go webtester library), adding a dep like github.com/bazelbuild/rules_webtesting v0.3.5 does not work; Go gives an error saying that the version doesn't exist. Dropping the v does not work either, as it's invalid.

It appears that after v0.2.0, the tagging scheme changed from vX.Y.Z to X.Y.Z.

There is a workaround for now, which is to depend on a pseudo-version (v0.0.0-TIMESTAMP-COMMIT) corresponding to the X.Y.Z commit, which for 0.3.5 is v0.0.0-20210910170740-6b2ef24cfe95

This workaround is ugly though, and most users (myself included) will probably not realize that when they add rules_webtesting with go get / go mod tidy etc., it will add an outdated version to go.mod (v0.2.0).

Can this repository be reverted back to the old tagging scheme? Or maybe publish two tags pointing to the same commit, v0.3.5 (for Go users) and 0.3.5 (for other purposes)?

@bduffany bduffany changed the title New versioning scheme is not compatible with go.mod Version tags after v0.2.0 dropped the "v" prefix; no longer compatible with go.mod Feb 2, 2023
@bduffany bduffany changed the title Version tags after v0.2.0 dropped the "v" prefix; no longer compatible with go.mod Version tags after v0.2.0 are missing the v prefix and no longer usable in go.mod Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant