- `just test -v` passed the recipe's one-argument check and then discovered all of tests/. The runner takes --require-paths, which refuses a run naming no path or file list, and `just test` passes it. - `just test-js` ran the TUI tests before @hermes/ink was built. It builds it first, as the TUI's own `check` script does. - `just lock` went through run-in-hermes-env, which syncs first; after a pyproject.toml edit the sync refuses the stale uv.lock before pm lock runs. scripts/relock.sh runs pm lock with the bootstrap Python, then syncs. - `just setup` on Windows called pwsh, which a stock Windows does not have. It uses powershell.exe, as activate.ps1's own caller does.
20 lines
807 B
Bash
Executable File
20 lines
807 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Refresh uv.lock from pyproject.toml, then re-sync this checkout's environment.
|
|
#
|
|
# `scripts/run-in-hermes-env python -m pm.cli lock` cannot do this: a changed
|
|
# pyproject.toml makes the environment stale, so the wrapper syncs first, and
|
|
# the sync refuses the stale uv.lock before `pm lock` runs. The bootstrap
|
|
# Python runs pm without any dependency installed, so the lock comes first.
|
|
set -euo pipefail
|
|
|
|
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo="$(dirname "$here")"
|
|
# shellcheck source=scripts/_activation.sh
|
|
. "$here/_activation.sh"
|
|
python="$(hermes_bootstrap_python "$repo")" || {
|
|
echo "no bootstrap Python found; run setup-hermes.sh" >&2
|
|
exit 1
|
|
}
|
|
(cd "$repo" && PYTHONHOME= PYTHONPATH="$repo" "$python" -m pm.cli lock)
|
|
exec "$here/run-in-hermes-env" true
|