Skip to content

Conversation

yhabib
Copy link
Contributor

@yhabib yhabib commented Sep 9, 2025

Motivation

The IC Cargo dependencies job has been consistently failing due compatibility issues of dependencies. Eg:

The error is introduced due different versions of ic-cdk-executor:

error: failed to select a version for `ic-cdk-executor`.
    ... required by package `ic-cdk v0.18.7`
    ... which satisfies dependency `ic-cdk = "^0.18.7"` of package `cycles-minting-canister v0.9.0 (https://github.com/dfinity/ic?rev=release-2025-08-28_03-17-snapshot-feature#91732387)`
    ... which satisfies git dependency `cycles-minting-canister` of package `nns-dapp v2.0.125 (/home/runner/work/nns-dapp/nns-dapp/rs/backend)`
versions that meet the requirements `^1.0.2` are: 1.0.2

package `ic-cdk-executor` links to the native library `ic-cdk async executor, see [https://github.com/dfinity/cdk-rs/blob/links-pin/TROUBLESHOOTING.md`,](https://github.com/dfinity/cdk-rs/blob/links-pin/TROUBLESHOOTING.md%60,) but it conflicts with a previous package which links to `ic-cdk async executor, see [https://github.com/dfinity/cdk-rs/blob/links-pin/TROUBLESHOOTING.md`](https://github.com/dfinity/cdk-rs/blob/links-pin/TROUBLESHOOTING.md%60) as well:
package `ic-cdk-executor v0.1.0`
    ... which satisfies dependency `ic-cdk-executor = "^0.1.0"` of package `ic-cdk v0.17.2`
    ... which satisfies dependency `ic-cdk = "^0.17.1"` of package `nns-dapp v2.0.125 (/home/runner/work/nns-dapp/nns-dapp/rs/backend)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "ic-cdk async executor, see https://github.com/dfinity/cdk-rs/blob/links-pin/TROUBLESHOOTING.md"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `ic-cdk-executor` which could resolve this conflict

Changes

  • Define workspace versions for the SNS aggregator module.
  • Update ic-timers to the latest version.
  • Update ic-cdk to the latest version.
  • Run scripts/update-ic-cargo-deps --ref "release-10-09_03-15-base"

Tests

  • CI should pass as before.

Todos

  • Accessibility (a11y) – any impact?
  • Changelog – is it needed?

@yhabib yhabib changed the title versions fix(deps): resolve ic-cdk-executor version conflicts Sep 9, 2025
@yhabib yhabib force-pushed the yhabib/ci/dep-issues branch 2 times, most recently from 6f96500 to 9ccdad2 Compare September 11, 2025 08:20
@yhabib
Copy link
Contributor Author

yhabib commented Sep 11, 2025

Relates to #7340

@yhabib yhabib force-pushed the yhabib/ci/dep-issues branch from 9ccdad2 to f863ca9 Compare October 13, 2025 13:51
@yhabib yhabib force-pushed the yhabib/ci/dep-issues branch from 32457d9 to b75ca39 Compare October 14, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant