From c47237b9c7c89d2570b4b788dba7e3c5ee70a59b Mon Sep 17 00:00:00 2001 From: Henry Park Date: Thu, 12 Mar 2026 21:13:36 -0700 Subject: [PATCH] fix(ci): add missing attachments field and crates/ dir to Dockerfiles (#1100) The discord channel's poll_channel_mentions emit_message call was missing the required `attachments: vec![]` field, causing WASM compilation failure. Both Dockerfiles were also missing `COPY crates/ crates/` needed for the extracted ironclaw_safety crate. [skip-regression-check] Co-authored-by: Claude Opus 4.6 --- Dockerfile | 1 + Dockerfile.test | 1 + channels-src/discord/Cargo.lock | 2 +- channels-src/discord/src/lib.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0375e509..08a0b721 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ WORKDIR /app # Copy manifests first for layer caching COPY Cargo.toml Cargo.lock ./ +COPY crates/ crates/ # Copy source, build script, tests, and supporting directories COPY build.rs build.rs diff --git a/Dockerfile.test b/Dockerfile.test index 202bd04d..6ec502ba 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app COPY Cargo.toml Cargo.lock ./ +COPY crates/ crates/ COPY build.rs build.rs COPY src/ src/ COPY tests/ tests/ diff --git a/channels-src/discord/Cargo.lock b/channels-src/discord/Cargo.lock index 9fee443c..f25ce551 100644 --- a/channels-src/discord/Cargo.lock +++ b/channels-src/discord/Cargo.lock @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "discord-channel" -version = "0.1.0" +version = "0.2.0" dependencies = [ "ed25519-dalek", "hex", diff --git a/channels-src/discord/src/lib.rs b/channels-src/discord/src/lib.rs index acb0bb41..cdb6c515 100644 --- a/channels-src/discord/src/lib.rs +++ b/channels-src/discord/src/lib.rs @@ -642,6 +642,7 @@ fn poll_channel_mentions(channel_id: &str, bot_id: &str) { }, thread_id: None, metadata_json, + attachments: vec![], }); remember_processed_id(&mut recent_ids, &msg.id);