-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Milestone
Description
If you haven't installed one or more of the Rust dependencies that are installed by running npx azle dev setup
, then if you try to run npx azle dev template --all
(the flag probably doesn't matter) then you will get this error:
Azle BuildError: Error: Could not parse cargo-deny version
It seems like the source of this issue is here: src/stable/build/utils/versions/get_cargo_version.ts
Look at this line:
const cargoOutput = execSyncPretty('cargo install --list').toString();
So if you haven't installed a cargo global dependency yet, then it will just fail to parse. It seems like we should at least have a better error for this case, so detect that the package hasn't been installed and explain that the dev should run npx azle dev setup
.
Metadata
Metadata
Assignees
Labels
No labels