-
Notifications
You must be signed in to change notification settings - Fork 824
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
wasmer run doesn't pick the latest package from the registry #4288
Comments
This may be an issue in the resolver code. Possibly the |
It seems the issue is due to manifests not being generated for some package versions, causing the runtime to ignore them. The last version with a proper manifest is 29.0.0. @Michael-F-Bryan I think this issue can be closed here since it's not runtime related. |
has this been fixed? |
@yamt can you provide an example? You might be seeing a different issue. |
btw, i published toywasm 36.0.0 yesterday. but for some reasons it isn't shown up on https://wasmer.io/yamt/toywasm. |
@ayys please share your findings here. |
Thanks for the ping @theduke Exception: Error while running webc conversion using wapm-to-webc 1.4.3
thread 'main' panicked at 'internal error: entered unreachable code: The path should be fully resolved and relative to the base directory', crates/webc/src/wasmer_package/volume.rs:331:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: RuntimeError: unreachable
at __rust_start_panic (<module>[6197]:0x38fe0b)
at rust_panic (<module>[6173]:0x38ef43)
at std::panicking::rust_panic_with_hook::h51603b60b23a0fb8 (<module>[6172]:0x38ef16)
at std::panicking::begin_panic_handler::{{closure}}::h376f292379b1d694 (<module>[6160]:0x38e035)
at std::sys_common::backtrace::__rust_end_short_backtrace::h0b174033ce8c7f4e (<module>[6159]:0x38df5f)
at rust_begin_unwind (<module>[6167]:0x38e5f3)
at core::panicking::panic_fmt::h0724b0a601bd3679 (<module>[6311]:0x3964ff)
at webc::wasmer_package::volume::Volume::as_directory_tree::h1dbb74e49d2d352d (<module>[3247]:0x2317da)
at webc::wasmer_package::package::Package::serialize::he988a23b08eaff5a (<module>[3139]:0x228f71)
at wapm_to_webc::convert::ConvertOptions::run::ha094318eeeb83961 (<module>[583]:0x5deab)
at wapm2pirita::main::ha8afd5757497a108 (<module>[213]:0x13c8e)
at std::sys_common::backtrace::__rust_begin_short_backtrace::hf8a7f79bcbcfb0d2 (<module>[193]:0x12841)
at std::rt::lang_start::{{closure}}::h938310d90f887e8e (<module>[194]:0x1286a)
at std::rt::lang_start_internal::hf59d11c495a5d34c (<module>[6008]:0x38393f)
at __main_void (<module>[215]:0x14c1d)
at _start (<module>[22]:0x2f78)
╰─▶ 1: RuntimeError: unreachable
at __rust_start_panic (<module>[6197]:0x38fe0b)
at rust_panic (<module>[6173]:0x38ef43)
at std::panicking::rust_panic_with_hook::h51603b60b23a0fb8 (<module>[6172]:0x38ef16)
at std::panicking::begin_panic_handler::{{closure}}::h376f292379b1d694 (<module>[6160]:0x38e035)
at std::sys_common::backtrace::__rust_end_short_backtrace::h0b174033ce8c7f4e (<module>[6159]:0x38df5f)
at rust_begin_unwind (<module>[6167]:0x38e5f3)
at core::panicking::panic_fmt::h0724b0a601bd3679 (<module>[6311]:0x3964ff)
at webc::wasmer_package::volume::Volume::as_directory_tree::h1dbb74e49d2d352d (<module>[3247]:0x2317da)
at webc::wasmer_package::package::Package::serialize::he988a23b08eaff5a (<module>[3139]:0x228f71)
at wapm_to_webc::convert::ConvertOptions::run::ha094318eeeb83961 (<module>[583]:0x5deab)
at wapm2pirita::main::ha8afd5757497a108 (<module>[213]:0x13c8e)
at std::sys_common::backtrace::__rust_begin_short_backtrace::hf8a7f79bcbcfb0d2 (<module>[193]:0x12841)
at std::rt::lang_start::{{closure}}::h938310d90f887e8e (<module>[194]:0x1286a)
at std::rt::lang_start_internal::hf59d11c495a5d34c (<module>[6008]:0x38393f)
at __main_void (<module>[215]:0x14c1d)
at _start (<module>[22]:0x2f78)
It looks like an issue with LICENSE or README file being improperly set in What can you, the user, do to get this error?You have two options,
What is
|
We investigated a bit more the issue: It seems the issue is that the README and LICENSE are out of the current directory where the manifest is defined: https://github.com/yamt/toywasm/blob/master/wapm/wapm.toml The license went from: license = "BSD-2-Clause" to: license-file = "../LICENSE" We should probably throw a warning if the license file is not found, or readme is not found in the tar.gz Basically, when using wapm2pirita we should not fail the process of converting from mypackage.tar.gz to mypackage.webc if a file is missing. We should just show a warning, and skip that field on the webc manifest |
these lines have not been changed since the first version. |
Describe the bug
looking at https://wasmer.io/yamt/toywasm
as of writing this, the latest version of this package is 34.0.0.
however, for some reasons,
wasmer run yamt/toywasm
picks and runs 29.0.0.specifying later versions doesn't work either.
i tried two versions, one from https://github.com/wasmerio/wasmer/releases/tag/v4.2.3
another from homebrew. the symptom was the same.
Steps to reproduce
see above.
Expected behavior
pick the latest version.
Actual behavior
for some reasons it can only see up to 29.0.0.
Additional context
webassembly.sh picks the latest version as expected.
https://webassembly.sh/?run-command=toywasm%20--version
The text was updated successfully, but these errors were encountered: