]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Rework version bumping 3696/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Apr 2025 18:28:25 +0000 (20:28 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 16 Apr 2025 09:57:37 +0000 (11:57 +0200)
commit898d89e887def3197376528a456f0b2e0215d234
tree91be4dd0625232b7325c98e5d088abaec28510b0
parentcc45fe3bad2ef7f40b226e858a233b3f2ea024e4
Rework version bumping

Currently, --auto-bump= bumps the version after finishing a build.
Effectively this means the version in mkosi.version doesn't reflect
the actual version of the image which seems weird. Instead, let's
generate the new version upfront so that it's used by the build but
only write it to mkosi.version when we do a successful build.

Additionally, look for a mkosi.bump script and use it if it exists
to generate the new version so we can generate a timestamp as the
version in particleos.
mkosi/__init__.py
mkosi/config.py
mkosi/resources/man/mkosi.1.md