You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
On wapm.io, the adamz/quickjs package uses adamz/quickjs as its module name.
wapm.toml file
[package]
name = "adamz/quickjs"version = "0.20210327.0"description = "QuickJS is a small and embeddable JavaScript engine. It supports the ES2019 specification including modules, asynchronous generators and proxies."repository = "https://github.com/saghul/wasi-lab"homepage = "https://bellard.org/quickjs/"
[[module]]
name = "adamz/quickjs"# <----------source = "build/qjs.wasm"abi = "wasi"
[module.interfaces]
wasi = "0.0.0-unstable"
[[command]]
name = "qjs"module = "adamz/quickjs"
[[command]]
name = "quickjs"module = "adamz/quickjs"
When wapm2pirita turns the tarball into a *.webc file, we rename the atom to just quickjs... However, the manifest still thinks it is called adamz/quickjs.
Manifest and volumes for the WEBC file according to wapm2pirita
That means anything looking up the particular atom will fail because we're looking for adamz/quickjs when we should look for quickjs. That causes things like wasmer-pack to fail downstream.
$ wasmer-pack show ~/Downloads/quickjs-0.20210327.0.tar.gzError: Unable to load the packageCaused by: Could not find file "adamz/quickjs": could not find file or directory "adamz" (os error 2)
To fix this, we should change wasmer_pack::Module's name field from a String to some sort of ModuleName type which makes sure the manifest name is valid (e.g. it is an "identifier" that doesn't contain a /).
Here are the tarball and *.webc files we were testing against:
On wapm.io, the adamz/quickjs package uses
adamz/quickjs
as its module name.wapm.toml file
When
wapm2pirita
turns the tarball into a*.webc
file, we rename the atom to justquickjs
... However, the manifest still thinks it is calledadamz/quickjs
.Manifest and volumes for the WEBC file according to wapm2pirita
That means anything looking up the particular atom will fail because we're looking for
adamz/quickjs
when we should look forquickjs
. That causes things likewasmer-pack
to fail downstream.To fix this, we should change
wasmer_pack::Module
'sname
field from aString
to some sort ofModuleName
type which makes sure the manifest name is valid (e.g. it is an "identifier" that doesn't contain a/
).Here are the tarball and
*.webc
files we were testing against:quickjs-0.20210327.0.tar.gz
quickjs-0.20210327.0.webc.zip
The text was updated successfully, but these errors were encountered: