Skip to content
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

building function-component.wasm race condition #26

Open
danielterwiel opened this issue Oct 18, 2023 · 0 comments
Open

building function-component.wasm race condition #26

danielterwiel opened this issue Oct 18, 2023 · 0 comments

Comments

@danielterwiel
Copy link
Contributor

danielterwiel commented Oct 18, 2023

Current main when deleting components/ folder.

Seems like the component isn't being built before the dependencies are loaded.

mba~/code/dl/mycelia % cargo run build
warning: cli v0.1.0 (/Users/dani/code/dl/mycelia/cli) ignoring invalid dependency `development_server` which is missing a lib target
    Finished dev [unoptimized + debuginfo] target(s) in 0.45s
     Running `target/debug/cli build`
[2023-10-18T10:13:01Z INFO  cli::build::build] Building Mycelia project
    Finished release [optimized] target(s) in 0.29s
warning: cli v0.1.0 (/Users/dani/code/dl/mycelia/cli) ignoring invalid dependency `development_server` which is missing a lib target
   Compiling function_service v0.1.0 (/Users/dani/code/dl/mycelia/services/function)
error: couldn't read services/function/src/../../../components/function-component.wasm: No such file or directory (os error 2)
   --> services/function/src/lib.rs:202:21
    |
202 |         let bytes = include_bytes!("../../../components/function-component.wasm");
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `function_service` (lib) due to previous error
[2023-10-18T10:13:03Z ERROR cli] Workspace { status: 101 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant