File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181if [ -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/"
8489fi
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
205210find " $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.
You can’t perform that action at this time.
0 commit comments