From 8e18a25922d40586ce364d5a83e115c5f0fadc5d Mon Sep 17 00:00:00 2001 From: Aaron Hogue Date: Fri, 28 Aug 2026 10:49:28 -0400 Subject: [PATCH] fix(packaging): download sherpa-onnx module before resolving its path go list -m returns empty on a fresh clone because the module cache is unpopulated; add go mod download first so the directory can be resolved. Co-Authored-By: Claude Sonnet 4.6 --- packaging/bundle-dylibs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/bundle-dylibs.sh b/packaging/bundle-dylibs.sh index b78e72a..1d87691 100755 --- a/packaging/bundle-dylibs.sh +++ b/packaging/bundle-dylibs.sh @@ -27,6 +27,8 @@ BINARY="$MACOS_DIR/vox" [ -x "$BINARY" ] || { echo "no binary at $BINARY" >&2; exit 1; } # Locate the dylibs via the module cache rather than hardcoding a version. +# Download first so go list can resolve the directory on a fresh clone. +go mod download github.com/k2-fsa/sherpa-onnx-go-macos >/dev/null MODDIR="$(go list -m -f '{{.Dir}}' github.com/k2-fsa/sherpa-onnx-go-macos)" LIBDIR="$MODDIR/lib/aarch64-apple-darwin" [ -d "$LIBDIR" ] || { echo "no dylib dir at $LIBDIR" >&2; exit 1; }