Menu
Public repository / 4fac5c7826068a0d615a09851633816b41204468
AkurAI-Notes / scripts/lint-akurai-yml.sh
Latest change 7af5d1d22d67bf1312e3d44b32f352ddb84c9dd9 - OLI-188: check out sibling path deps in CI; add lint-config job 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