Skip to content

Import the SDK by its post-rebrand crate name - #1

Merged
n1ckyb merged 2 commits into
release/v0.0.2-rcfrom
fix/sdk-import-post-rebrand
Aug 9, 2026
Merged

Import the SDK by its post-rebrand crate name#1
n1ckyb merged 2 commits into
release/v0.0.2-rcfrom
fix/sdk-import-post-rebrand

Conversation

@n1ckyb

@n1ckyb n1ckyb commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

This crate has not compiled since the rebrand.

Cargo.toml declares intentumdiff-plugin-sdk; the source imported intentdiff_plugin_sdk. The rename reached the manifest and never reached the code, and the SDK has no [lib] name override, so there is no escape hatch:

error[E0433]: cannot find module or crate `intentdiff_plugin_sdk`

It failed on lib code, not just tests, so nothing here built. It stayed invisible because the green checks on this repo are CodeQL, not a build.

What is deliberately NOT changed

Spelling Treatment
intentdiff::plugin::parser:: kept - WIT-generated module path
intentdiff:plugin@1.0.0 kept - the wire contract
intentdiff_plugin_sdk:: renamed

A blanket rename broke all 69 components once before with 637 misleading failures. This matches the word-bounded crate name only, and the script refuses to write a file whose WIT reference counts changed.

Verified in the monorepo: cargo test --workspace -> 83 binaries, 554 passed, 0 failed.

🤖 Generated with Claude Code

n1ckyb and others added 2 commits August 9, 2026 19:15
This crate declares intentumdiff-plugin-sdk in Cargo.toml but imported intentdiff_plugin_sdk in code, so it has not compiled since the rebrand - failing on lib code, not just tests.

The WIT module path (intentdiff::plugin::parser) and the WIT package id (intentdiff:plugin@1.0.0) are a wire CONTRACT and are deliberately unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This crate declares intentumdiff-plugin-sdk but pinned tag v0.1.0, where the SDK still declares name = intentdiff-plugin-sdk. Cargo resolves a git dependency by package name, so it failed with 'no matching package named intentumdiff-plugin-sdk' regardless of the imports.

v0.0.2-beta.1 is the first SDK tag carrying the renamed crate. Paired with the import fix on this branch so the crate actually builds.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@n1ckyb
n1ckyb merged commit 27a0d7b into release/v0.0.2-rc Aug 9, 2026
1 check passed
@n1ckyb
n1ckyb deleted the fix/sdk-import-post-rebrand branch August 9, 2026 19:35
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