mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a89cf37993
commit
c47237b9c7
@@ -19,6 +19,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Copy manifests first for layer caching
|
# Copy manifests first for layer caching
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
COPY crates/ crates/
|
||||||
|
|
||||||
# Copy source, build script, tests, and supporting directories
|
# Copy source, build script, tests, and supporting directories
|
||||||
COPY build.rs build.rs
|
COPY build.rs build.rs
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
COPY crates/ crates/
|
||||||
COPY build.rs build.rs
|
COPY build.rs build.rs
|
||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
COPY tests/ tests/
|
COPY tests/ tests/
|
||||||
|
|||||||
Generated
+1
-1
@@ -121,7 +121,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "discord-channel"
|
name = "discord-channel"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ed25519-dalek",
|
"ed25519-dalek",
|
||||||
"hex",
|
"hex",
|
||||||
|
|||||||
@@ -642,6 +642,7 @@ fn poll_channel_mentions(channel_id: &str, bot_id: &str) {
|
|||||||
},
|
},
|
||||||
thread_id: None,
|
thread_id: None,
|
||||||
metadata_json,
|
metadata_json,
|
||||||
|
attachments: vec![],
|
||||||
});
|
});
|
||||||
|
|
||||||
remember_processed_id(&mut recent_ids, &msg.id);
|
remember_processed_id(&mut recent_ids, &msg.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user