Files
hermes-agent/scripts/termux
BearHuddleston 1ebd9b864e test(termux): run build_deb.sh for its payload version instead of slicing its heredoc
The pinned-commit version test found an exact heredoc opener in build_deb.sh, cut its Python
body out and ran that fragment: a source-reading test (tests/AGENTS.md) that breaks on a
harmless shell refactor and still passes if the fragment sits in the wrong branch.

build_deb.sh now derives a tagged build's version once, through deb_version.py
--release-version, whether or not a commit is pinned; the heredoc keeps only the tagless
commit build's version_at read. It logs the payload version before its first post-version
gate. The tests run the real script against a throwaway git repo with docker, dpkg-deb and jq
stubbed, and stop at the missing --tui-product, so they see the version the stamp would carry
for each tag shape in both tag modes. Mutants caught: ${TAG#v}, the original ${TAG:1}, and
deriving the version only in tag mode.
2026-11-20 11:28:21 -06:00
..
…