AkurAI Build
Menu

Public repository / c3ef99b092caa55fb6a3eed9d3e776734cc99e97

AkurAI-Mail / scripts/lint-akurai-yml.sh

Latest change 045c6e9898aee39f49ad8d0e6ca4b5c7697877d2 - OLI-188: roll out lint-config CI job and sibling-dep lint by Ólafur Búi Ólafsson

#!/bin/sh
# Fails on absolute /home/<user> paths, bare $HOME/~ host paths, or run-numbered artifact references in .akurai.yml.
set -eu
file="${1:-.akurai.yml}"
[ -f "$file" ] || exit 0
if grep -nE '/home/[A-Za-z0-9_-]+|artifacts/[0-9]+/[0-9]+|\$\{?HOME\b|(^|[[:space:]=:])~/' "$file"; then
  echo "lint-akurai-yml: $file has hard-coded home paths, bare \$HOME/~ (per-run sandbox HOME in forge jobs), or run-numbered artifacts; use \$AKURAI_HOST_HOME / \$AKURAI_BUILD_DATA" >&2
  exit 1
fi