wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
https://wasmer.io
MIT License
18.28k stars 775 forks source link

Improve wasmer run semver versions #4522

Open syrusakbary opened 4 months ago

syrusakbary commented 4 months ago

Right now running

$ wasmer run pancake/r2@5.4.1

Fetches pancake/r2@5.9.0 (!!)

Feches a different version than wasmer run pancake/r2@=5.4.1. Intiuitevely, we should use by default = version, not "similar to"

linear[bot] commented 4 months ago

RUN-133 Improve wasmer run semver versions

syrusakbary commented 3 months ago

@ayys this may be a backend issue

theduke commented 3 months ago

This is most likely the dependency resolution code in the wasix crate, not the backend.

I agree that in the CLI the semver logic is unintuitive.

In other contexts resolution should use semver, not an exact version, or potentially the exact version for theh root package, and semver otherwise. This needs to be tweaked carefully to avoid breaking downstream logic.