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

feat: add tags to the runtime metadata #87

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

Angelmmiguel
Copy link
Contributor

@Angelmmiguel Angelmmiguel commented Feb 13, 2023

Introduce the concept of tags to the runtime metadata. This will simplify how developers can install new runtimes by providing generic pointers to specific versions. It works similar to other platforms like OCI and Docker.

After installing it, the version will be locked on the .wws.toml file, so other developers will get always the same binaries when installing the runtime dependencies.

CLI

$ wws runtimes list
⚙️  Fetching data from the repository...
┌────────┬─────────┬───────────┬───────────┬─────────────┐
│ Name   │ Version │ Tags      │ Extension │ Binary      │
├────────┼─────────┼───────────┼───────────┼─────────────┤
│ ruby   │ 3.2.0   │ latest, 3 │ rb        │ ruby.wasm   │
├────────┼─────────┼───────────┼───────────┼─────────────┤
│ python │ 3.11.1  │ latest, 3 │ py        │ python.wasm │
└────────┴─────────┴───────────┴───────────┴─────────────┘

$ wws runtimes install ruby latest
⚙️  Fetching data from the repository...
🚀 Installing the runtime...
✅ Done

$ wws runtimes check
┌───────────┬──────┬─────────┬───────────┬───────────┬───────────┐
│ Installed │ Name │ Version │ Tags      │ Extension │ Binary    │
├───────────┼──────┼─────────┼───────────┼───────────┼───────────┤
│ ✅        │ ruby │ 3.2.0   │ latest, 3 │ rb        │ ruby.wasm │
└───────────┴──────┴─────────┴───────────┴───────────┴───────────┘

It closes #86

@Angelmmiguel Angelmmiguel added the 🚀 enhancement New feature or request label Feb 13, 2023
@Angelmmiguel Angelmmiguel added this to the v1.0.0 milestone Feb 13, 2023
@Angelmmiguel Angelmmiguel requested a review from a team February 13, 2023 09:32
@Angelmmiguel Angelmmiguel self-assigned this Feb 13, 2023
@Angelmmiguel Angelmmiguel merged commit a23438f into main Feb 13, 2023
@Angelmmiguel Angelmmiguel deleted the 86-add-aliases branch May 8, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tags to the runtime metadata definition
3 participants