pkg.sh: Move release bookkeeping from the RELEASES file to Git tags #177
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20261110-pkg-sh-move-release-bookkeeping-from-the-releases-file-to-git-tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The release flow recorded per-platform releases in the committed
RELEASESfile, 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 retitledRelease: <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 legacyRELEASESfile drops out of the tree on the next release of each project.pkg.sh: Retitle release commits "Release "
The current
Start versioncommit 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 simplyRelease <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 fromRELEASESto Git tag.Create a git tag per release, named after the version and the platform of the
RELEASESentry, sokali-rolling/amd64: 1.0.0-288becomes the tagv1.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
RELEASESbookkeeping, but the file is still tracked injw-pkgand in every other project repo, and removing it by hand in each of them does not scale.Make
check_update_version()remove theRELEASESfile 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 trackedRELEASESfile is unaffected.