dfinity / cdk-rs

Rust canister development kit for the Internet Computer.
Apache License 2.0
201 stars 89 forks source link

fix: use standard canister id environment variables #464

Closed ericswanson-dfinity closed 9 months ago

ericswanson-dfinity commented 9 months ago

Description

Look up the CANISTER_ID_<canister_name_uppercase> and CANISTER_CANDID_PATH_<canister_name_uppercase> environment variables to get the canister ID for a canister name. Previously the case of the canister name matched the case of the canister, typically lowercase.

This is technically a breaking change, if you've been building manually and providing these environment variables with any lowercase elements.

If you've been building with dfx, it is not a breaking change.

Needed for https://dfinity.atlassian.net/browse/SDK-1379

How Has This Been Tested?

See tests on this branch: https://github.com/dfinity/sdk/tree/test-cdk-standard-env-vars

Checklist:

lwshang commented 9 months ago

Implemented in #467