Skip to content

Commit c52bc17

Browse files
authored
fix(sdk-rs): use symlink JSON Schema instead of using a relative path to fix the build (#7406)
1 parent 24c0998 commit c52bc17

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docker/router.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ COPY --from=sdk_rs_pkg Cargo.toml /usr/src/sdk-rs/
2323
COPY --from=config Cargo.lock /usr/src/router/
2424

2525
# Copy usage report schema
26-
# `usage.rs` uses it with the path `../../services/usage/usage-report-v2.schema.json`
26+
# `agent.rs` uses it
2727
# So we need to place it accordingly
28-
COPY --from=usage_service usage-report-v2.schema.json /usr/services/usage/
28+
COPY --from=usage_service usage-report-v2.schema.json /usr/src/sdk-rs/
2929

3030
WORKDIR /usr/src/sdk-rs
3131
# Get the dependencies cached, so we can use dummy input files so Cargo wont fail

packages/libraries/sdk-rs/src/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct ExecutionReport {
2525
pub persisted_document_hash: Option<String>,
2626
}
2727

28-
typify::import_types!(schema = "../../services/usage/usage-report-v2.schema.json");
28+
typify::import_types!(schema = "./usage-report-v2.schema.json");
2929

3030
#[derive(Debug, Default)]
3131
pub struct Buffer(Mutex<VecDeque<ExecutionReport>>);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../services/usage/usage-report-v2.schema.json

0 commit comments

Comments
 (0)