jw-pkg/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann f738951642
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m28s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m34s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m12s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m22s
CI / Packaging test (push) Successful in 0s
calculate_hash(): Derive hash from VCS file ids
The source hash is an md5sum over all versioned files in the working tree.
md5sum follows symlinks, so a project with links to files outside the tree
may produce different hashes depending on files outside the repo.

Compute the hash over the VCS file ids instead. Add a -s option to scm.sh
ls-files that lists each versioned file together with its content id. The
listing is sorted by path rather than by id, so an entry keeps its position
when its content changes.

For Git repos, git ls-tree -r HEAD reports the blob of a symlink's target
string and the pinned commit of a submodule, so the resulting hash depends
only on the committed tree, never on the working tree or on the machine.

calculate_hash() and the HASH variable in make/pkg-dist.mk feed the id
listing, minus the release metadata files, directly to md5sum.

calculate_hash() fails loudly when the pipeline fails, with its callers
refusing to proceed on an empty result.

The scheme change invalidates the stored HASH values, so every project
gets one more release the first time it runs against the new code, and the
hashes are stable again afterwards.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
2026-09-16 14:44:59 +02:00
..
usr-bin conf / scripts: Fix unprivileged "make install" 2026-08-18 17:27:32 +02:00
create-mkdebian.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
create-mkspec.sh create-mkspec.sh: Tolerate comma-separated subpackages 2026-07-22 11:06:58 +02:00
dpm.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
git-srv-admin.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
ini-tools.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
jw Revert "scripts: Add __init__.py" 2026-01-26 17:17:23 +01:00
jw-pkg-create-project.sh jw-pkg-create-project.sh: Use make gitignore 2026-09-13 23:09:25 +02:00
jw-pkg.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
make-version-script.sh make, scripts: Re-add files necessary for building ytools 2025-11-14 15:59:49 +01:00
Makefile scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
mkspec-wrapper.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
pgit.sh pgit.sh: Allow running under any projects-dir.mk 2026-09-05 13:39:51 +02:00
pkg.sh calculate_hash(): Derive hash from VCS file ids 2026-09-16 14:44:59 +02:00
purge-stale-projects.sh purge-stale-projects.sh: Fix getopt regression 2026-06-30 07:36:15 +02:00
python-tools.sh python-tools.sh: Annotate generated conftest.py 2026-09-13 15:42:29 +02:00
scm.sh calculate_hash(): Derive hash from VCS file ids 2026-09-16 14:44:59 +02:00
ssh-wrapper.sh projects-dir.mk: Remove "-l user" in ssh-wrapper.sh 2026-06-07 12:06:02 +02:00
systemctl-wrapper.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00
upload.sh scripts: Fix shellcheck errors 2026-06-29 17:52:24 +02:00