Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Activate mise shims in the release preflight worker

rcourtman152ef86d333d
diff --git a/scripts/release-preflight-worker.sh b/scripts/release-preflight-worker.sh
index 905999162d..b559aae921 100755
--- a/scripts/release-preflight-worker.sh
+++ b/scripts/release-preflight-worker.sh
@@ -39,6 +39,13 @@ GO_TMP_DIR="${RUN_DIR}/go-tmp"
TIMINGS_FILE="${RUN_DIR}/timings.tsv"
TEST_DATA_DIR="${WORKER_ROOT}/test-data/${PROFILE}"
+# The worker is invoked over a non-login ssh shell, so /etc/profile.d is not
+# sourced and an infra-managed mise toolchain (Node 24, Go) would be shadowed by
+# any stale system binary on PATH. Activate mise shims when they are installed.
+if [ -x "$HOME/.local/bin/mise" ]; then
+ eval "$("$HOME/.local/bin/mise" activate bash --shims)"
+fi
+
for command_name in git go node npm docker curl flock timeout python3; do
if ! command -v "$command_name" >/dev/null 2>&1; then
echo "Error: required worker command is missing: ${command_name}" >&2