发布

  • fix(backends): derive darwin RUN_BINARY from the exec line only (#10541)

    frostbyte_neo 发布于 2026-06-27 00:05:40 +00:00 | 1102 次提交 在此版本后已推送到 master

    golang-darwin.sh's packaging check derived the launch binary by grepping every
    $CURDIR/... reference in run.sh and taking the last one. Backends that pick a
    runtime CPU variant assign it via unquoted LIBRARY=$CURDIR/libgo<x>-avx512.so
    lines, so the heuristic returned libgo<x>-avx512.so — a variant Darwin never
    builds (arm64 builds only fallback) — and the check then failed with
    "package/libgo-avx512.so not found ... refusing to package (#10267)",
    breaking the darwin builds for whisper, sam3-cpp, vibevoice-cpp and friends.

    Scan only the exec line(s) (the actual launch contract) and tolerate a
    quoted exec "$CURDIR"/<binary>. parakeet-cpp's parakeet-cpp-grpc and the
    quoted-only backends (sherpa/piper/opus) resolve correctly; no Linux change.

    Assisted-by: Claude:claude-opus-4-8

    Signed-off-by: Ettore Di Giacinto mudler@localai.io
    Co-authored-by: Ettore Di Giacinto mudler@localai.io

    下载附件