This is for the Version:adrianinsaval wrote: ↑Mon May 30, 2022 7:50 amCode: Select all
OS: KDE Flatpak runtime (KDE/plasma) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.14555 (Git shallow)
That is "confusing"
This is the Branch: that seems to bring the "relevant" information 0.19.4adrianinsaval wrote: ↑Mon May 30, 2022 7:50 amCode: Select all
Build type: Release Branch: (HEAD detached at 0.19.4)
If "version number" will be "renamed" and "reference" and in Version: there will be the actual Branch info better stripped from "HEAD detached at" this could be a viable solution.
As the Version Number will be consistent and easy to note down.
for versions of dev probably something like 0.20.0.<gitnumber> should be a solution?
In code this could resemble something like Branch+gitversion
EDIT output of
Code: Select all
FreeCAD.Version()
['0', '19', '24366 (Git)', 'https://github.com/conda-forge/freecad-feedstock', '2021/12/04 21:56:30', '(HEAD detached at 0f9259c)', '0f9259cda103ae1824ac16c68ac9b4a0d54b05fc']
1) adding as third component subsubversion (0,1,2,3,4) and leaving the "24366 (Git)" as fourth component
2) leaving all like this and adding a new component last in the list with the subsubversion.
3) adding a new field at the end with the complete version number "0.19.4" as example, and manage internally the composition
Probably 2) and 3) will not break existing code if there are some concerns.
Only packagers and developers have to cope with the version number, as if git is consecutive a "wb developer" that is in need to find a point were things changed could eve use the (24366) or even the full commit number in a check to use "new features" or "different behaviour"
But I don't know how feasible is this solution.
Regards
Carlo D.