Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Nested paths don't work as expected #30

Open
dynamite-bud opened this issue Oct 3, 2023 · 0 comments
Open

Nested paths don't work as expected #30

dynamite-bud opened this issue Oct 3, 2023 · 0 comments

Comments

@dynamite-bud
Copy link

Observed Error

When working with nested paths such as:

[package]
name = "dynamite-bud/py-worker-test-1"
version = "0.1.3"
description = "dynamite-bud/py-worker-test-1 py worker"

[dependencies]
"wasmer/python" = "^3.12.6"

[fs]
"/app/src" = "./src"

[[command]]
name = "script"
module = "wasmer/python:python"
runner = "wasi"

[command.annotations.wasi]
main-args = ["/app/src/main.py"]

Error

Running it with wasmer run . results in an error:
script: can't open file '/app/src/main.py': [Errno 44] No such file or directory

Expected Behaviour

Ideal toml file that works

[package]
name = "dynamite-bud/py-worker-test-1"
version = "0.1.3"
description = "dynamite-bud/py-worker-test-1 py worker"

[dependencies]
"wasmer/python" = "^3.12.6"

[fs]
"/src" = "./src"

[[command]]
name = "script"
module = "wasmer/python:python"
runner = "wasi"

[command.annotations.wasi]
main-args = ["/src/main.py"]

The above 👆🏼 works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant