bug: OSIS SDK generator emits wrong ClientError import path #101

Open
opened 2026-02-14 18:45:28 +00:00 by mik-tf · 0 comments
Owner

Problem

The SDK code generator at packages/osis/src/generators/rust/rust_client.rs emits:

pub use herolib_osis::offline::transport::ClientError;

But the offline module re-exports ClientError directly — transport is not part of the public API path. The correct import is:

pub use herolib_osis::offline::ClientError;

This causes compilation failures in any crate depending on hero_osis_sdk.

Fix

1-line change in packages/osis/src/generators/rust/rust_client.rs (line 2175).

See also: lhumina_code/hero_osis#6

## Problem The SDK code generator at `packages/osis/src/generators/rust/rust_client.rs` emits: ```rust pub use herolib_osis::offline::transport::ClientError; ``` But the `offline` module re-exports `ClientError` directly — `transport` is not part of the public API path. The correct import is: ```rust pub use herolib_osis::offline::ClientError; ``` This causes compilation failures in any crate depending on `hero_osis_sdk`. ## Fix 1-line change in `packages/osis/src/generators/rust/rust_client.rs` (line 2175). See also: https://forge.ourworld.tf/lhumina_code/hero_osis/issues/6
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_lib#101
No description provided.