Read version number from file
This MR changes the cmake configuration to read the version number from a new file called version_number in the root directory. This is in anticipation of switching how (and where) we tag releases.
@rlangenb and my idea was the following:
- We do development on
master
and feature branches (as before). The version number here is fixed to9.9.9
and is not touched (fileversion_number
never gets changes on master.9.9.9
is a "valid" version number, and is always "newer" than any real version. - When we want to tag a release, we make an MR from
master
to a new branchrelease
. This MR gets merged with a merge commit - On
release
we directly add a commit which only changes the version number inversion_number
. - This commit gets tagged
This does two things:
-
master
always has a defined version, that is not an actual version, so there can be no confusion - We have all mainline tag commits on one single branch (and not scattered across
release-*
branches). For backports or bugfixes (which we don't really have at the moment) we can then still use dedicated branches.
Thoughts? (especially from @msmk)