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
masterand feature branches (as before). The version number here is fixed to9.9.9and is not touched (fileversion_numbernever gets changes on master.9.9.9is a "valid" version number, and is always "newer" than any real version. - When we want to tag a release, we make an MR from
masterto a new branchrelease. This MR gets merged with a merge commit - On
releasewe directly add a commit which only changes the version number inversion_number. - This commit gets tagged
This does two things:
-
masteralways 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)