From ccd09d5558ddcd4fff45226b6570c102d3be3bef Mon Sep 17 00:00:00 2001 From: Adil Date: Thu, 12 Nov 2026 20:17:23 +0500 Subject: [PATCH] hum: on orchd 0.5 and Orch 0.3 orchd 0.5 is Zig and ships as release binaries, not on crates.io, so the installer's `cargo install orchd =0.4.0` could only ever reach 0.4. It now fetches the pinned 0.5.0 release for the host, checks its sha256, and installs orchd with orch and the rootstocks beside it: orchd reads every Orchfile through `orch resolve --json`, so orch is no longer optional. A host with no orchd build (Intel macOS) gets a warning instead of a failed install, since hum never calls orchd. orchd 0.5 replaced --namespace with --grove and rejects the old flag, so every bundled hive's install now grows under `--grove hum-`. hum parses Orchfiles with the-orch 0.3. Orch 0.3 takes runtime values as ARG overrides and applies only the declared ones, so the whole environment goes in and parse_raw, which 0.3 removed, is no longer needed to find the declared ARGs. --- Cargo.lock | 4 +- hives/anthropic-server/install | 2 +- hives/apple-fm/install | 2 +- hives/bash/install | 2 +- hives/bp7/install | 2 +- hives/claude-cli/install | 2 +- hives/claude-repl/install | 2 +- hives/dwarfstar/install | 2 +- hives/grpc/install | 2 +- hives/gsm-modem/install | 2 +- hives/ollama-server/install | 2 +- hives/openai-server/install | 2 +- hives/paid-oracle/install | 2 +- hives/twilio-sms/install | 2 +- hives/web2/install | 2 +- hum/Cargo.toml | 2 +- hum/src/orchfile.rs | 66 ++++++++++++++++++++++---- install | 85 +++++++++++++++++++++++++++++----- 18 files changed, 147 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2c2c90e5..4312f434 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4396,9 +4396,9 @@ dependencies = [ [[package]] name = "the-orch" -version = "0.2.10" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6def679e429ef0478234e4aecdc471e7f9a21d9ab8efd977d36ad4d42cd14282" +checksum = "5c608824cc4ed8a83d17a8fca1cdf0b0403d10e439cecccbe05f8e498ec43e50" dependencies = [ "serde", "serde_json", diff --git a/hives/anthropic-server/install b/hives/anthropic-server/install index 1f9b42d2..81a1e793 100755 --- a/hives/anthropic-server/install +++ b/hives/anthropic-server/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/apple-fm/install b/hives/apple-fm/install index 5805207f..3a46e5e9 100755 --- a/hives/apple-fm/install +++ b/hives/apple-fm/install @@ -20,6 +20,6 @@ done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | g units=() while read -r unit; do units+=("$unit"); done < <(sed -n 's/^SERVICE \([A-Za-z0-9_.-]*\)$/\1/p' "$here/Orchfile" | grep -vx hive-install) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "${units[@]}" diff --git a/hives/bash/install b/hives/bash/install index 1f9b42d2..81a1e793 100755 --- a/hives/bash/install +++ b/hives/bash/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/bp7/install b/hives/bp7/install index 1f9b42d2..81a1e793 100755 --- a/hives/bp7/install +++ b/hives/bp7/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/claude-cli/install b/hives/claude-cli/install index 1f9b42d2..81a1e793 100755 --- a/hives/claude-cli/install +++ b/hives/claude-cli/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/claude-repl/install b/hives/claude-repl/install index 1f9b42d2..81a1e793 100755 --- a/hives/claude-repl/install +++ b/hives/claude-repl/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/dwarfstar/install b/hives/dwarfstar/install index 85049087..1f8845bd 100755 --- a/hives/dwarfstar/install +++ b/hives/dwarfstar/install @@ -21,6 +21,6 @@ done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | g units=() while read -r unit; do units+=("$unit"); done < <(sed -n 's/^SERVICE \([A-Za-z0-9_.-]*\)$/\1/p' "$here/Orchfile" | grep -vx hive-install) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "${units[@]}" diff --git a/hives/grpc/install b/hives/grpc/install index 1f9b42d2..81a1e793 100755 --- a/hives/grpc/install +++ b/hives/grpc/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/gsm-modem/install b/hives/gsm-modem/install index 1f9b42d2..81a1e793 100755 --- a/hives/gsm-modem/install +++ b/hives/gsm-modem/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/ollama-server/install b/hives/ollama-server/install index b09c998d..6f6a26af 100755 --- a/hives/ollama-server/install +++ b/hives/ollama-server/install @@ -20,6 +20,6 @@ done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | g units=() while read -r unit; do units+=("$unit"); done < <(sed -n 's/^SERVICE \([A-Za-z0-9_.-]*\)$/\1/p' "$here/Orchfile" | grep -vx hive-install) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "${units[@]}" diff --git a/hives/openai-server/install b/hives/openai-server/install index 95429f97..1ef1eede 100755 --- a/hives/openai-server/install +++ b/hives/openai-server/install @@ -16,7 +16,7 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" echo "openai-server: make a key with: node $here/dist/index.js key add ; until one exists, anyone who reaches its port may call" diff --git a/hives/paid-oracle/install b/hives/paid-oracle/install index 1f9b42d2..81a1e793 100755 --- a/hives/paid-oracle/install +++ b/hives/paid-oracle/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/twilio-sms/install b/hives/twilio-sms/install index 1f9b42d2..81a1e793 100755 --- a/hives/twilio-sms/install +++ b/hives/twilio-sms/install @@ -16,6 +16,6 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" diff --git a/hives/web2/install b/hives/web2/install index 474e2c03..b851a71f 100755 --- a/hives/web2/install +++ b/hives/web2/install @@ -16,7 +16,7 @@ while read -r name; do if [ -n "${!name:-}" ]; then args+=(--arg "$name=${!name}"); fi done < <(sed -n 's/^ARG \([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' "$here/Orchfile" | grep -vx -e HUM_SRC -e HUM_HIVE) -run() { "$orchd" --project-dir "$here" --namespace "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } +run() { "$orchd" --project-dir "$here" --grove "hum-$hive" --user --state-dir "$state/orch" "${args[@]}" "$@"; } run fell >/dev/null 2>&1 || true run grow "$hive" echo "web2 for people (wrepl, login, status, import): $here/target/release/web2" diff --git a/hum/Cargo.toml b/hum/Cargo.toml index 7c01797e..2994ed9d 100644 --- a/hum/Cargo.toml +++ b/hum/Cargo.toml @@ -13,7 +13,7 @@ hum-identity = { path = "../hum-identity" } hum-thrum = { path = "../hum-thrum" } humd = { path = "../humd" } thehum = { path = "../thehum" } -the-orch = "0.2" +the-orch = "0.3" anyhow = "1" clap = { version = "4", features = ["derive"] } serde_json = "1" diff --git a/hum/src/orchfile.rs b/hum/src/orchfile.rs index 708bf8c3..d9f3f326 100644 --- a/hum/src/orchfile.rs +++ b/hum/src/orchfile.rs @@ -1,6 +1,10 @@ //! The one part of the Orch spec hum reads: a hive's Orchfile, resolved //! well enough to find and run its `hive-install` unit. Every other unit //! is left to the hive. +//! +//! Orch 0.3 takes runtime values as ARG overrides and applies only those +//! the Orchfile declares, so the whole environment goes in and a declared +//! ARG takes its value from it, the way orchd resolves the same file. use std::collections::HashMap; use std::path::Path; @@ -8,17 +12,19 @@ use std::path::Path; use anyhow::{Result, anyhow}; use the_orch::types::{OrchFile, Service}; -fn declared_args(body: &str) -> HashMap { - the_orch::parser::parse_raw(body, 0) - .map(|raw| raw.args.into_iter().collect()) - .unwrap_or_default() +pub fn resolve(hive: &str, src: &Path, body: &str) -> Result { + let env = std::env::vars_os() + .filter_map(|(k, v)| Some((k.into_string().ok()?, v.into_string().ok()?))); + resolve_in(hive, src, body, env) } -pub fn resolve(hive: &str, src: &Path, body: &str) -> Result { - let mut args: HashMap = declared_args(body) - .into_keys() - .filter_map(|k| std::env::var(&k).ok().map(|v| (k, v))) - .collect(); +fn resolve_in( + hive: &str, + src: &Path, + body: &str, + env: impl IntoIterator, +) -> Result { + let mut args: HashMap = env.into_iter().collect(); args.insert("HOME".into(), hum_paths::home().display().to_string()); args.insert("HUM_SRC".into(), src.display().to_string()); args.insert("HUM_HIVE".into(), hive.to_string()); @@ -33,3 +39,45 @@ pub fn install_unit(file: &OrchFile) -> Option<&Service> { .iter() .find(|s| s.name == hum_paths::HIVE_INSTALL_UNIT) } + +#[cfg(test)] +mod tests { + use super::*; + + const BODY: &str = "ARG PORT=1\nSERVICE hive-install\nRUN serve ${PORT} ${HUM_SRC}\nONESHOT true\n"; + + fn run_of(file: &OrchFile) -> Option<&str> { + install_unit(file).and_then(|u| u.run_command.as_deref()) + } + + #[test] + fn a_declared_arg_takes_its_value_from_the_environment() { + let body = format!("ARG HUM_SRC=/x\n{BODY}"); + let env = [("PORT".to_string(), "9".to_string())]; + let file = resolve_in("h", Path::new("/hives/h"), &body, env).unwrap(); + assert_eq!(run_of(&file), Some("serve 9 /hives/h")); + } + + #[test] + fn a_declared_arg_the_environment_lacks_keeps_its_default() { + let body = format!("ARG HUM_SRC=/x\n{BODY}"); + let file = resolve_in("h", Path::new("/hives/h"), &body, []).unwrap(); + assert_eq!(run_of(&file), Some("serve 1 /hives/h")); + } + + #[test] + fn the_environment_adds_no_arg_the_orchfile_never_declared() { + let body = format!("ARG HUM_SRC=/x\n{BODY}"); + let env = [("STRAY".to_string(), "leak".to_string())]; + let file = resolve_in("h", Path::new("/hives/h"), &body, env).unwrap(); + assert!(!file.args.contains_key("STRAY"), "args: {:?}", file.args); + } + + #[test] + fn hum_sets_the_source_over_whatever_the_environment_says() { + let body = format!("ARG HUM_SRC=/x\n{BODY}"); + let env = [("HUM_SRC".to_string(), "/stale".to_string())]; + let file = resolve_in("h", Path::new("/hives/h"), &body, env).unwrap(); + assert_eq!(run_of(&file), Some("serve 1 /hives/h")); + } +} diff --git a/install b/install index 78186d1c..75143b1c 100755 --- a/install +++ b/install @@ -1,13 +1,14 @@ #!/usr/bin/env bash # hum installer. # -# Builds + registers humd as a user service. Pulls the orchd supervisor -# from crates.io, pinned exactly, for hives to keep their own processes -# alive with; hum itself never calls it. `hum hive install` teaches -# humd a hive, and the hive enters and runs its own bees. The `orch` -# Orchfile CLI is not installed — it's dead weight; hum parses Orchfiles -# in-process, and Orchfile parsing is available as the `the-orch` library -# should we ever need it. +# Builds + registers humd as a user service. Installs the orchd supervisor +# from its GitHub release, pinned exactly and checksum-verified, for hives +# to keep their own processes alive with; hum itself never calls it. The +# release carries orch, which orchd reads every Orchfile through, and +# orchd's rootstocks, so all of them are installed beside it. +# `hum hive install` teaches humd a hive, and the hive enters and +# runs its own bees. hum parses Orchfiles in-process with the `the-orch` +# library, the same Orch version orch speaks. # # Idempotent — re-running upgrades in place. # @@ -41,8 +42,9 @@ ORCHD_BIN="$HUM_BIN_ROOT/bin/orchd" HUM_REPO_URL="${HUM_REPO_URL:-https://github.com/adiled/hum.git}" HUM_SRC="$HUM_DATA/src" -ORCHD_MIN_VERSION="0.4.0" -ORCHD_MAX_VERSION="0.4.0" +ORCHD_MIN_VERSION="0.5.0" +ORCHD_MAX_VERSION="0.5.0" +ORCHD_RELEASES="${ORCHD_DOWNLOAD_URL:-https://github.com/adiled/orchd/releases/download/v$ORCHD_MIN_VERSION}" EDGE=0 declare -a REST=() @@ -192,9 +194,66 @@ prepare_src() { echo "$HUM_SRC" } +orchd_target() { + local ARCH SYS + case "$(uname -m)" in + x86_64|amd64) ARCH=x86_64 ;; + arm64|aarch64) ARCH=aarch64 ;; + *) return 1 ;; + esac + case "$OS" in + Linux) SYS=linux ;; + Darwin) SYS=macos ;; + *) return 1 ;; + esac + case "$ARCH-$SYS" in + x86_64-linux|aarch64-linux|aarch64-macos) echo "$ARCH-$SYS" ;; + *) return 1 ;; + esac +} + +sha256_of() { + if command -v sha256sum >/dev/null 2>&1; then sha256sum "$1" | cut -d' ' -f1 + elif command -v shasum >/dev/null 2>&1; then shasum -a 256 "$1" | cut -d' ' -f1 + else fail "need sha256sum or shasum to check the orchd download"; fi +} + +fetch_orchd_release() { + local TMP="$2" TARBALL="orchd-$1.tar.gz" + curl -fsSL "$ORCHD_RELEASES/$TARBALL" -o "$TMP/$TARBALL" \ + || fail "could not fetch $ORCHD_RELEASES/$TARBALL" + curl -fsSL "$ORCHD_RELEASES/$TARBALL.sha256" -o "$TMP/$TARBALL.sha256" \ + || fail "could not fetch $ORCHD_RELEASES/$TARBALL.sha256" + local WANT GOT + WANT="$(cut -d' ' -f1 < "$TMP/$TARBALL.sha256")" + GOT="$(sha256_of "$TMP/$TARBALL")" + [ "$WANT" = "$GOT" ] || fail "checksum mismatch for $TARBALL: expected $WANT, got $GOT" + tar -xzf "$TMP/$TARBALL" -C "$TMP" || fail "could not unpack $TARBALL" + { [ -x "$TMP/bin/orchd" ] && [ -x "$TMP/bin/orch" ]; } || fail "$TARBALL holds no bin/orchd and bin/orch" + mkdir -p "$HUM_BIN_ROOT/bin" || fail "cannot make $HUM_BIN_ROOT/bin" + local FILE NAME + for FILE in "$TMP"/bin/*; do + NAME="$(basename "$FILE")" + { cp "$FILE" "$HUM_BIN_ROOT/bin/.$NAME.new" \ + && chmod 755 "$HUM_BIN_ROOT/bin/.$NAME.new" \ + && mv -f "$HUM_BIN_ROOT/bin/.$NAME.new" "$HUM_BIN_ROOT/bin/$NAME"; } \ + || fail "cannot install $NAME into $HUM_BIN_ROOT/bin" + done +} + install_orchd() { - log "installing orchd (bee supervisor) ${ORCHD_MIN_VERSION} from crates.io, pinned" - cargo install --quiet orchd --version "=$ORCHD_MIN_VERSION" --root "$HUM_BIN_ROOT" --force + local TARGET + if ! TARGET="$(orchd_target)"; then + warn "orchd ${ORCHD_MIN_VERSION} ships no build for $(uname -m) $OS (only x86_64-linux, aarch64-linux, aarch64-macos)." + warn "hum runs without it, but hives that keep processes alive need it: build it from https://github.com/adiled/orchd" + return 0 + fi + log "installing orchd (bee supervisor) ${ORCHD_MIN_VERSION} for $TARGET, with orch and its rootstocks, pinned" + ORCHD_TMP="$(mktemp -d)" + trap 'rm -rf "$ORCHD_TMP"' EXIT + fetch_orchd_release "$TARGET" "$ORCHD_TMP" + rm -rf "$ORCHD_TMP" + trap - EXIT ensure_min_version orchd "$ORCHD_BIN" "$ORCHD_MIN_VERSION" ensure_orchd_api "$ORCHD_BIN" local CUR; CUR="$(read_version "$ORCHD_BIN" || true)" @@ -214,7 +273,9 @@ build_binaries() { [ -x "$HUMD_BIN" ] || fail "humd not at $HUMD_BIN after build" [ -x "$HUMCTL_BIN" ] || fail "humctl not at $HUMCTL_BIN after build" [ -x "$HUM_CLI_BIN" ] || fail "hum not at $HUM_CLI_BIN after build" - [ -x "$ORCHD_BIN" ] || fail "orchd not at $ORCHD_BIN after build" + if orchd_target >/dev/null; then + [ -x "$ORCHD_BIN" ] || fail "orchd not at $ORCHD_BIN after build" + fi log "humd $HUMD_BIN ; humctl $HUMCTL_BIN ; hum $HUM_CLI_BIN ; orchd $ORCHD_BIN" }