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

Proposal: Use version requirement for slight add and slight new instead of precise version #337

Open
Mossaka opened this issue Feb 25, 2023 · 0 comments
Assignees
Labels
1️⃣ good first issue Good for newcomers ✨ feature New feature or feature request 📐 proposal A concept/proposition, no design work has been done yet
Milestone

Comments

@Mossaka
Copy link
Member

Mossaka commented Feb 25, 2023

Describe the solution you'd like

We want to give users more flexibility to download WIT interfaces and slight templates using version requirements instead of precise verion numbers.

A precise version number is defined as a three digit version number like v0.3.1 but a version requirement is much more flexible than that. A major motivation for this proposal is that we want to ignore patch versions for downloading interfaces or slight templates. That is, we want to be able to run something like

slight add [email protected]

or

slight add http-client@latest

Where v0.3 is a version requirement saying that the major version is 0 and minor version is 3 and it ignores the patch version. It will automatically find the latest version that satisifes this version requirement.

The latest version is equivalent to * wildcard version requirement which basically says "please download the latest version for me, and I don't care about major, minor, patch or whatever"

CC @danbugs

Additional context

@Mossaka Mossaka added 📐 proposal A concept/proposition, no design work has been done yet ✨ feature New feature or feature request 1️⃣ good first issue Good for newcomers labels Feb 25, 2023
@danbugs danbugs moved this to Backlog in Wasm Projects Mar 9, 2023
@danbugs danbugs self-assigned this Mar 9, 2023
@danbugs danbugs moved this from Backlog to Todo in Wasm Projects Mar 9, 2023
@danbugs danbugs added this to the March Milestone milestone Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1️⃣ good first issue Good for newcomers ✨ feature New feature or feature request 📐 proposal A concept/proposition, no design work has been done yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants