hero_lifecycle: stale pub use control_plane_router breaks build (renamed to private control_plane_openrpc) #148
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_lib#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
hero_lifecyclefails to compile on the currentdevelopmentHEAD due to a stale re-export. Therpcmodule function was renamedcontrol_plane_router→control_plane_openrpc, but the crate-rootpub usewas not updated (and the new function is private), so any downstream consumer that buildshero_libbreaks.Error
Root cause
crates/hero_lifecycle/src/lib.rs:126re-exportscontrol_plane_router.crates/hero_lifecycle/src/rpc.rs:410definesfn control_plane_openrpc(...)— note it is private (fn, notpub fn). The oldcontrol_plane_routername no longer exists.So fixing the re-export name alone is not enough; the function must also be made
pubif it is genuinely meant to be exported, or removed from thepub uselist if it should stay internal.Suggested fix
Either:
control_plane_routerfrom thepub usein lib.rs:126 if it is no longer part of the public API.Reproduction
Any consumer building
hero_libdevelopmentHEAD, e.g.cargo build -p labinhero_skills:Observed at hero_lib commit
ee95c88(branchdevelopment).