deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spurious error log for bindles with no assets

itowlson opened this issue · comments

I was testing an AssemblyScript bindle with no assets (parcels with file = "true") and WAGI reported:

ERROR wagi::handlers: Error opening directory host=/tmp/.tmpZDm4l0/_ASSETS/01dd871ae08edba8e2f5a4ac483b5161cb4999a7265275a4caf11eec7e52ba05 guest=/ error=No such file or directory (os error 2)

I think the asset directory is only getting created if there are assets to emplace there, but is always being mapped as a volume. This is probably only an issue on HEAD because it was likely introduced in the refactor.