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

Make version requirements consistent between package and publish #425

Closed
robertoaloi opened this issue Feb 26, 2020 · 4 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities released
Milestone

Comments

@robertoaloi
Copy link

Hi! I tried to publish an extension with version 0.1.0-a. The version was accepted by the package command, but not by the publish:

$ vsce publish
ERROR  The version string '0.1.0-a' doesn't conform to the requirements for a version. It must be one to four numbers in the range 0 to 2147483647, with each number seperated by a period. It must contain at least one non-zero number.

Fair enough, then I replaced the -a with .0 (I need an extra value aside the semver and 0.1.0.0 should match the above expectations). This time is the package command which complains:

$ vsce package
ERROR  Invalid extension version '0.1.0.0'

If this is not supposed to be a valid version either, isn't the message returned by the publish command incorrect?

VSCE version: 1.73.0

@robertoaloi
Copy link
Author

And now I notice that #415 is related. Also, there's a typo in the message itself:

seperated -> separated

robertoaloi added a commit to erlang-ls/vscode that referenced this issue Feb 26, 2020
@joaomoreno
Copy link
Member

Yes, last month I had publish catch invalid versions, but there was a public outcry: #415 (comment)

So, closing it as designed.

@joaomoreno
Copy link
Member

If this is not supposed to be a valid version either, isn't the message returned by the publish command incorrect?

Indeed. Let's just rewrite the message we get from the Marketplace.

@joaomoreno joaomoreno reopened this Feb 27, 2020
@joaomoreno joaomoreno self-assigned this Feb 27, 2020
@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug good first issue help wanted Issues identified as good community contribution opportunities labels Feb 27, 2020
@joaomoreno joaomoreno added this to the November 2021 milestone Nov 4, 2021
@github-actions
Copy link

github-actions bot commented Nov 4, 2021

🎉 This issue has been resolved in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities released
Projects
None yet
Development

No branches or pull requests

2 participants