Skip to content

Commit c8c5f6c

Browse files
zerone0xclaude
andcommitted
fix: bundle vendored bubblewrap for docs.rs
Fixes #44 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 98695b0 commit c8c5f6c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/sync.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ done
8181
if [ -d "$SRC/vendor" ]; then
8282
echo " vendor/"
8383
cp -r "$SRC/vendor" "$UPSTREAM_DIR/vendor"
84+
85+
# Keep bubblewrap inside the linux-sandbox crate too so the published
86+
# zerobox-linux-sandbox tarball includes the vendored sources docs.rs needs.
87+
mkdir -p "$UPSTREAM_DIR/linux-sandbox/vendor"
88+
cp -r "$UPSTREAM_DIR/vendor/bubblewrap" "$UPSTREAM_DIR/linux-sandbox/vendor/"
8489
fi
8590

8691
# --- Inline error types into linux-sandbox (replace codex-core dep) ---
@@ -204,6 +209,8 @@ find "$UPSTREAM_DIR" \( -name '*.rs' -o -name '*.toml' \) \
204209

205210
find "$UPSTREAM_DIR" -name '*.rs' -exec "${SED_INPLACE[@]}" \
206211
-e 's/CODEX_LINUX_SANDBOX_ARG0/ZEROBOX_LINUX_SANDBOX_ARG0/g' \
212+
-e 's|codex-rs/vendor/bubblewrap|zerobox-linux-sandbox/vendor/bubblewrap|g' \
213+
-e 's|\.\./vendor/bubblewrap|vendor/bubblewrap|g' \
207214
{} +
208215

209216
# Add workspace metadata inheritance for crates.io publishing.

0 commit comments

Comments
 (0)