发布

  • fix(backends): ship the package/ dir for darwin go backend images (#10522)

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

    fix(backends): ship the package/ dir for darwin go backends

    golang-darwin.sh packaged the whole backend source/build dir as the OCI
    image (backend/go/$BACKEND/.), so the runtime dylibs ended up under
    package/lib and backend-assets/lib while run.sh looks in $CURDIR/lib. As a
    result a backend like sherpa-onnx could not dlopen its libsherpa-shim.dylib
    at runtime and exited immediately (the model then 500s with "grpc service
    not ready"); it started fine only when run from inside package/.

    Ship package/. instead — the self-contained run.sh + binary + lib/ bundle —
    matching the Linux Dockerfile.golang (COPY .../package/. ./). Backends
    that don't assemble a package/ fall back to the backend dir, and the
    binary-existence guard now checks the directory actually shipped.

    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

    下载附件