deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
889 stars 45 forks source link

Spurious error log for bindles with no assets #130

Closed itowlson closed 2 years ago

itowlson commented 3 years ago

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.