pkg.sh: Move release bookkeeping from the RELEASES file to Git tags #177

Merged
Jan Lindemann merged 3 commits from jan/feature/20261110-pkg-sh-move-release-bookkeeping-from-the-releases-file-to-git-tags into master 2026-11-10 14:06:20 +01:00 AGit
Owner

The release flow recorded per-platform releases in the committed RELEASES file, updated and committed on every release. This PR moves that bookkeeping to Git: each release becomes an annotated tag named after the version and the platform, the version bump commit is retitled Release: <version> and records the source hash of the state it allocates, and the bump decision keys off that committed hash so a platform pulling a release commit made by another platform tags the same commit instead of bumping again. The legacy RELEASES file drops out of the tree on the next release of each project.

pkg.sh: Retitle release commits "Release "

The current Start version commit subject sits well in a history of commits where that commit is followed by commits which complete a release of that version on a respective platform. Those checkpoints are going to move out of commits to Git tags, with only one commit per version remaining. So, label the version bump commit simply Release <version> instead.

pkg.sh: Use tags instead of RELEASES file

If a release on a platform is due is decided by checking if the version / platform / architecture combination is recorded in RELEASES. This commit moves that bookkeeping from RELEASES to Git tag.

Create a git tag per release, named after the version and the platform of the RELEASES entry, so kali-rolling/amd64: 1.0.0-288 becomes the tag v1.0.0-288@kali-rolling/amd64, and push the branch commit and the tag. The tag message keeps the previous commit message, Release <version>@<platform>.

pkg.sh: Drop the RELEASES file in the release commit

The release tags replace the RELEASES bookkeeping, but the file is still tracked in jw-pkg and in every other project repo, and removing it by hand in each of them does not scale.

Make check_update_version() remove the RELEASES file from the tree in the release commit itself when it is still there, so the next release of each project drops it automatically. The removal is git only, as the release flow is; a repo without a tracked RELEASES file is unaffected.

The release flow recorded per-platform releases in the committed `RELEASES` file, updated and committed on every release. This PR moves that bookkeeping to Git: each release becomes an annotated tag named after the version and the platform, the version bump commit is retitled `Release: <version>` and records the source hash of the state it allocates, and the bump decision keys off that committed hash so a platform pulling a release commit made by another platform tags the same commit instead of bumping again. The legacy `RELEASES` file drops out of the tree on the next release of each project. #### pkg.sh: Retitle release commits "Release <version>" The current `Start version` commit subject sits well in a history of commits where that commit is followed by commits which complete a release of that version on a respective platform. Those checkpoints are going to move out of commits to Git tags, with only one commit per version remaining. So, label the version bump commit simply `Release <version>` instead. #### pkg.sh: Use tags instead of RELEASES file If a release on a platform is due is decided by checking if the version / platform / architecture combination is recorded in `RELEASES`. This commit moves that bookkeeping from `RELEASES` to Git tag. Create a git tag per release, named after the version and the platform of the `RELEASES` entry, so `kali-rolling/amd64: 1.0.0-288` becomes the tag `v1.0.0-288@kali-rolling/amd64`, and push the branch commit and the tag. The tag message keeps the previous commit message, `Release <version>@<platform>`. #### pkg.sh: Drop the RELEASES file in the release commit The release tags replace the `RELEASES` bookkeeping, but the file is still tracked in `jw-pkg` and in every other project repo, and removing it by hand in each of them does not scale. Make `check_update_version()` remove the `RELEASES` file from the tree in the release commit itself when it is still there, so the next release of each project drops it automatically. The removal is git only, as the release flow is; a repo without a tracked `RELEASES` file is unaffected.
The current "Start version" commit subject sits well in a history of
commits where that commit is followed by commits which complete a release
of that version on a respective platform. Those checkpoints are going to move
out of commits to Git tags, with only one commit per version remaining. So,
label the version bump commit simply "Release <version>" instead.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
If a release on a platform is due is decided by checking if the version /
platform / architecture combination is recorded in RELEASES. This commit
moves that bookkeeping from RELEASES to Git tag.

Create a git tag per release, named after the version and the platform
of the RELEASES entry, so "kali-rolling/amd64: 1.0.0-288" becomes the
tag v1.0.0-288@kali-rolling/amd64, and push the branch commit and
the tag. The tag message keeps the previous commit message, "Release
<version>@<platform>".

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
pkg.sh: Drop the RELEASES file in the release commit
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m20s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m46s
CI / Packaging test (pull_request) Successful in 0s
a24769a840
The release tags replace the RELEASES bookkeeping, but the file is still
tracked in jw-pkg and in every other project repo, and removing it by hand
in each of them does not scale.

Make check_update_version() remove the RELEASES file from the tree in the
release commit itself when it is still there, so the next release of each
project drops it automatically. The removal is git only, as the release
flow is; a repo without a tracked RELEASES file is unaffected.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-11-10 13:55:12 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!177
No description provided.