ldclabs / idempotent-proxy

💈 Reverse proxy server with built-in idempotency support, written in Rust & Cloudflare Worker.
Apache License 2.0
10 stars 1 forks source link

Build fail on dfx 0.23.0 #2

Closed sardariuss closed 1 week ago

sardariuss commented 1 week ago

Took me a while to find out the reason while my build fails with the error:

$ dfx build idempotent-proxy-canister
Building canisters...
Checking for vulnerabilities in rust canisters.
    Fetching advisory database from https://github.com/RustSec/advisory-db.git
      Loaded 660 security advisories (from /home/tanguy/.cargo/advisory-db)
    Updating crates.io index
    Scanning Cargo.lock for vulnerabilities (308 crate dependencies)
Audit found no vulnerabilities.
Error: Failed while trying to build all canisters.
Caused by: The build step failed for canister 'bkyz2-fmaaa-aaaaa-qaaaq-cai' (idempotent-proxy-canister)
Caused by: Failed to build Rust canister 'idempotent-proxy-canister'.
Caused by: Failed to create <Type>CanisterInfo for canister 'idempotent-proxy-canister'.
Caused by: No crate `idempotent-proxy-canister` found`

Downgrading my dfx to 0.22.0 made it work. Now I don't know how to fix it with dfx 0.23.0

zensh commented 1 week ago

I can reproduce the issue but haven’t found the cause. I'll need to ask for help on the forum.

https://forum.dfinity.org/t/dfx-0-23-0-build-fail-caused-by-no-crate-xxxxxx-found/35521/2

zensh commented 1 week ago

@sardariuss It has been fixed. You can find detail info in the forum.

sardariuss commented 1 week ago

@zensh thank you!!