installer: require cmd/ananke build target
This commit is contained in:
parent
c605a083ee
commit
2e44c29adf
@ -671,10 +671,6 @@ resolve_build_target() {
|
||||
echo "./cmd/ananke"
|
||||
return 0
|
||||
fi
|
||||
if [[ -d "${REPO_DIR}/cmd/hecate" ]]; then
|
||||
echo "./cmd/hecate"
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
@ -847,12 +843,9 @@ cd "${REPO_DIR}"
|
||||
mkdir -p dist
|
||||
BUILD_TARGET="$(resolve_build_target || true)"
|
||||
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
|
||||
fi
|
||||
if [[ "${BUILD_TARGET}" != "./cmd/ananke" ]]; then
|
||||
echo "[install] build target fallback: ${BUILD_TARGET}"
|
||||
fi
|
||||
go build -o dist/ananke "${BUILD_TARGET}"
|
||||
|
||||
echo "[install] installing binary"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user