Skip to content

v1.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:25
97b4099

Release Notes

  • feat: --untrusted, on build, deploy and sync, holds a project someone else handed over to what it may read and run. Every file the project reads — manifests, argument and environment files, modules — must be under the project root and reached through no symlink. Each build step must be a pre-built module and each sync step a plugin, taken from a regular file in the project. A recipe is refused, wherever it is from. It expects to be run from the directory that holds icp.yaml, which it takes as the project root: it does not look in the directories above, and running from a subdirectory fails. --project-root-override names another directory. Anything else is refused before the command acts on it, naming what was found. The .icp directory is the tool's own state and is neither confined nor checked, so delete one that came with the project before running.
  • chore: macOS on Intel (x86_64-apple-darwin) is no longer a release target. Releases ship no Intel macOS archive, the shell installer refuses that platform, and npm no longer publishes @icp-sdk/icp-cli-darwin-x64, so installing @icp-sdk/icp-cli on an Intel Mac warns of an unsupported platform. Homebrew dropped Intel macOS in September 2026, and GitHub is retiring its Intel macOS runners. v1.8.0 is the last release with an Intel macOS build.
  • fix: icp token transfer reports a 64-character hex receiver whose checksum is wrong as an invalid account identifier, where it panicked.
  • fix: the Candid interface compatibility check that icp deploy and icp canister install run before an upgrade no longer accepts some breaking changes, and no longer takes exponential or quadratic time on large interfaces with recursive types or long alias chains. Comparing a recursive interface with several opt fields could accept a breaking upgrade before; it is now refused. This comes from updating to candid 0.10.41 and candid_parser 0.4.2, which also bring fixes for decoding Candid values.
  • feat(sync-plugin): whoever runs icp can bound what one sync plugin run consumes. ICP_CLI_PLUGIN_WALL_CLOCK_LIMIT_SECS limits a run's wall-clock time, canister calls included, and ICP_CLI_PLUGIN_MEMORY_LIMIT_MIB its memory, summed across all of the plugin's memories. Neither is set by a project. By default there is no wall-clock limit and memory is held to 4 GiB, so a plugin that works today keeps working. A plugin waiting on the host, which the compute-time limit never saw, now ends at the wall-clock limit. ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS is now read alongside them when icp starts, so a malformed value fails any command rather than only a sync. For crate users, all three limits, compute included, are set through icp_sync_plugin::Limits passed to Wasmtime::new, and Invocation::compute_limit_secs is gone.
  • fix: identity keys are handled by a release of the RustCrypto elliptic-curve crates that clears RUSTSEC-2026-0387, non-constant-time arithmetic in crypto-bigint. This comes from updating ic-agent, ic-utils and ic-identity-hsm to 0.50.0, and with them k256 and p256 to 0.14. Identity files are read and written in the same format as before.
  • feat: .icp/cache/artifacts keeps each distinct built module once. Canisters built to the same WASM — several canisters on one pre-built module, say — used to hold a copy each; they now share one file, at .modules/<sha256>.wasm, with a small file per canister under .refs/ naming it. A rebuild that changes nothing writes no module, one that finds its module damaged rewrites it, and a build ends by removing the modules no canister's entry names any longer. A canister removed from the project keeps its entry, and so its module, until .icp/cache/artifacts is deleted. Artifacts from an earlier version are not read: icp canister install after upgrading reports the canister as not built until icp build has run. The old files are left in place; delete .icp/cache/artifacts to reclaim their space.
  • chore: a sync plugin supplied as .wat text no longer loads; supply the compiled .wasm component. wasmtime is built with only the features the plugin runtime uses, which drops the text format among others.

Experimental

  • fix(extension): icp extension install refuses an extension whose summary, canister labels, command descriptions, argument help or values contain control characters or Unicode bidirectional-formatting characters (help text and descriptions may still break lines). Printed as they were, escape sequences in a label could erase earlier lines of the install prompt, hiding a canister, and a ledger's warning, from the list the user approves. icp extension show escapes such characters in an extension installed before.
  • feat(bundle): icp project bundle stores each distinct wasm module once for the whole bundle, at the archive root and named by its SHA-256: canister wasms at canisters/<sha256>.wasm, where it used to write one per canister at <instance>/canisters/<canister>.wasm, and plugin wasms at plugins/<sha256>.wasm, where it used to write a copy for every sync step of every canister in every instance at <instance>/plugins/<canister>/<idx>.wasm. A workspace of several frontend canisters built from the same asset canister and synced by the same assets plugin now carries each module once. Each step still names its module by path: and sha256:, so tools that read bundles need no change; a dependency's step reaches the store with a path that rises to the archive root, so a dependency's directory in an extracted bundle no longer works on its own — copied out, or as the root of --untrusted — and the bundle is used from its root. An archive listing no longer shows which canister a wasm belongs to; the manifests still do.
  • fix(bundle): icp project bundle holds only regular files and directories. A symlink inside a plugin's files: or dirs: directory used to be recorded as a link with its target unchecked, so one pointing outside the project reached that file on whatever machine unpacked the bundle. A link to somewhere inside the project is now copied as what it points at; one that leads outside the project, dangles, or leads back to a directory being copied fails the bundle, naming the link and where it leads. The same holds for a files: entry that is itself a symlink.

Install icp-cli 1.9.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.9.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.9.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.9.0

File Platform Checksum
icp-cli-aarch64-apple-darwin.tar.xz Apple Silicon 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