Skip to content

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 15:42
763a55f

Release Notes

  • feat(sync-plugin): Introduced v0.2.0 of the sync-plugin interface. v0.1.0 plugins are still supported. v0.2.0 introduces the following features:
    • canister-call can call canisters besides the host
    • icp.yaml can list key-value settings for plugins
    • icp.yaml's file/dir list is merged into a single files key, which is also key-value instead of a list
    • A new function canister-metadata-section can fetch ICP metadata sections
    • Plugin input includes canister-principal mappings and the gateway and API URLs
  • feat: a canister that uses a recipe can now declare its own sync steps, which previously was rejected outright. They run after the sync steps the recipe renders, so a recipe's post-deployment work stays intact and yours is appended to it. recipe and build remain mutually exclusive.
  • feat: Env-specific builds previously did not affect which canisters were being built. Now, any canisters not listed in that environment will not be built.

Experimental

  • feat: Environment declarations in workspaces no longer require all canisters to be declared at the top level. Instead, each subproject declares its own canisters' membership in environment blocks.
  • feat(bundle): icp project bundle -e <ENV> now decides what the bundle carries, not just what its build steps are told. The archive holds the canisters that environment contains and the bundled manifests declare only those, so a bundle built for one environment no longer ships every canister in the project. References the pruning would leave dangling go with them: another environment's canisters: list, a dependency's canisters: exposure list, an environment's settings:/init_args: override of a canister that is gone, and a controller naming a canister the environment does not hold — in a canister's own settings or in an environment's override of them — which is reported as a warning. The environment is now resolved rather than passed through as a name, so naming one the project does not declare — or one a workspace member does not declare — is an error, as it already was for icp build and icp deploy.
  • fix(dependencies)!: an environment's canisters: list is now honored in a workspace — a vendored project's own list used to be dropped, so all of its canisters deployed. Membership is decided locally and only locally: each project's canisters: list names that project's own canisters, so every canister's membership is decided by the manifest that declares it, and a vendored project holds the same canisters in an environment as it would deployed on its own. This is breaking for a root that named a dependency's canister — canisters: [app, "vendor/openemail:frontend"] is now rejected when the project is loaded, and keeping a dependency's canister out of an environment means editing that dependency. canisters: [] likewise empties only the project that writes it, and a listed environment's canisters now come in declaration order. See Which canisters an environment holds.

Install icp-cli 1.5.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.5.0/icp-cli-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/dfinity/icp-cli/releases/download/v1.5.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.5.0

File Platform Checksum
icp-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
icp-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
icp-cli-x86_64-pc-windows-msvc.zip x64 Windows checksum
icp-cli-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
icp-cli-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum