installer: require cmd/ananke build target

This commit is contained in:
Brad Stein 2026-04-07 13:16:39 -03:00
parent c605a083ee
commit 2e44c29adf

View File

@ -671,10 +671,6 @@ resolve_build_target() {
echo "./cmd/ananke" echo "./cmd/ananke"
return 0 return 0
fi fi
if [[ -d "${REPO_DIR}/cmd/hecate" ]]; then
echo "./cmd/hecate"
return 0
fi
return 1 return 1
} }
@ -847,12 +843,9 @@ cd "${REPO_DIR}"
mkdir -p dist mkdir -p dist
BUILD_TARGET="$(resolve_build_target || true)" BUILD_TARGET="$(resolve_build_target || true)"
if [[ -z "${BUILD_TARGET}" ]]; then if [[ -z "${BUILD_TARGET}" ]]; then
echo "[install] unable to find build target (expected cmd/ananke or cmd/hecate)." >&2 echo "[install] unable to find build target (expected cmd/ananke)." >&2
exit 1 exit 1
fi fi
if [[ "${BUILD_TARGET}" != "./cmd/ananke" ]]; then
echo "[install] build target fallback: ${BUILD_TARGET}"
fi
go build -o dist/ananke "${BUILD_TARGET}" go build -o dist/ananke "${BUILD_TARGET}"
echo "[install] installing binary" echo "[install] installing binary"