Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rust crate names are underscore in metadata #3915

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitdivine
Copy link
Member

Description

Rust expresses crate names with both hyphens and underscores but the metadata uses only underscores. For example, ic-cdk is a dependency of the sdk repo, but in cargo metadata it appears as ic_cdk. The match rule in canister_info::rust doesn't take this into account, causing spurious errors for canisters with hyphens in their name.

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

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