mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
radicle-search: Add search backend and httpd endpoints
This commit is contained in:
@@ -3,19 +3,13 @@ set -e
|
||||
|
||||
echo "🔨 Compiling local radicle-httpd..."
|
||||
|
||||
# Ensure radicle-httpd directory exists
|
||||
if [ ! -d "radicle-httpd" ]; then
|
||||
echo "❌ radicle-httpd directory not found"
|
||||
exit 1
|
||||
fi
|
||||
# radicle-httpd lives in the Cargo workspace under crates/. Building the
|
||||
# workspace member places the binary at the workspace-root target/, not under
|
||||
# the crate directory.
|
||||
cargo build -p radicle-httpd
|
||||
|
||||
# Compile radicle-httpd (debug build for faster compilation)
|
||||
cd radicle-httpd
|
||||
cargo build
|
||||
cd ..
|
||||
|
||||
# Verify binary was created
|
||||
if [ ! -f "radicle-httpd/target/debug/radicle-httpd" ]; then
|
||||
BIN="target/debug/radicle-httpd"
|
||||
if [ ! -f "$BIN" ]; then
|
||||
echo "❌ Compilation failed - binary not found"
|
||||
exit 1
|
||||
fi
|
||||
@@ -24,6 +18,6 @@ fi
|
||||
mkdir -p tests/tmp/bin/httpd/local
|
||||
|
||||
# Copy binary to test location
|
||||
cp radicle-httpd/target/debug/radicle-httpd tests/tmp/bin/httpd/local/radicle-httpd
|
||||
cp "$BIN" tests/tmp/bin/httpd/local/radicle-httpd
|
||||
|
||||
echo "✅ Local radicle-httpd compiled and ready at tests/tmp/bin/httpd/local/radicle-httpd"
|
||||
|
||||
@@ -13,7 +13,7 @@ cd /work
|
||||
# The container runs as root, so anything it writes into the bind-mounted repo
|
||||
# would otherwise be root-owned on the host. Hand those paths back to the
|
||||
# invoking user (HOST_UID/HOST_GID set by scripts/test-e2e-docker) on exit.
|
||||
# radicle-httpd/target lives in a named volume, so it's not host-visible.
|
||||
# The workspace target/ lives in a named volume, so it's not host-visible.
|
||||
cleanup() {
|
||||
if [ -n "${HOST_UID:-}" ]; then
|
||||
chown -R "$HOST_UID:${HOST_GID:-$HOST_UID}" \
|
||||
|
||||
Reference in New Issue
Block a user