Skip to content

build fail on main: makepad_ai_services::peer not found #317

Closed

Description

@ld1287

Summary

cargo build --release -p octosense fails on main (commit 4a54177, tag desktop-v0.1.0-beta.1) because crates/ai-host/src/module_peer.rs imports makepad_ai_services::peer, but the pinned makepad fork exposes the peer module under makepad_ai_hub::peer instead.

Reproduction

```sh
git clone https://github.com/OctoSense-org/OctoSense
cd OctoSense
cargo build --release -p octosense
```

Error

```
error[E0432]: unresolved import makepad_ai_services::peer
--> crates/ai-host/src/module_peer.rs:22:26
|
22 | use makepad_ai_services::peer::{PeerDown, PeerLink, PeerUp};
| ^^^^ could not find peer in makepad_ai_services

error: could not compile octosense-ai-host (lib) due to 1 previous error
```

The same wrong path appears at crates/ai-host/src/module_peer.rs:67 (use makepad_ai_services::peer::{OctosPeer, PeerCaller, PeerToolOutcome};).

Root cause

The pinned makepad fork at rev c155f61d0e1600d2ec474209374444a38a09a470 exports:

  • makepad_ai_hub::peer (.sources/makepad/libs/ai/hub/src/lib.rs:91: pub mod peer;)
  • makepad_ai_hub::peer_fetch
  • makepad_ai_hub::peer_serve

The makepad_ai_services crate exists at .sources/makepad/libs/ai/services/src/lib.rs but does not declare a peer module. Its lib.rs only re-exports engine, port, state, wire.

crates/ai-host/src/module_peer.rs was added in commit a672eb8 (PR #142, 2026-09-30) referencing makepad_ai_services::peer, but the runtime was repinned to the current makepad fork the same day (6c4746f, PR #192, 2026-09-30) so the import no longer resolves.

Suggested fix

  • Option 1 (minimal, 2 lines): rename the import path in crates/ai-host/src/module_peer.rs from makepad_ai_services::peer to makepad_ai_hub::peer (two use lines: L22 and L67). This matches what the current pinned runtime actually exposes.
  • Option 2: re-export peer under the makepad_ai_services name in makepad so the OctoSense contract is preserved.

Option 1 is the lowest-risk fix and unblocks the build immediately.

Environment

  • OctoSense: 4a54177 (main, tag desktop-v0.1.0-beta.1)
  • Makepad pin: c155f61d0e1600d2ec474209374444a38a09a470
  • App Hub pin: 0d5b47a2ae9eb98020feca26b7c895a3cf797dc1
  • rustc: stable (the workspace's resolver-default)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions