Recent

Author Topic: Auto incrementing build numbers  (Read 1008 times)

trev

  • Hero Member
  • *****
  • Posts: 823
  • Former Delphi 1-7 and 10.2 User
Auto incrementing build numbers
« on: October 22, 2019, 08:43:21 am »
I find it a little odd that for the build number to auto increment the file version build number you need to 1) Build and then 2) Compile or the build and file version build numbers are out of sync.

Maybe it's just me... it took me a fair while to notice the anomaly and what caused it.
o Lazarus v2.1.0 r63598, FPC v3.3.1 r45778, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 993
Re: Auto incrementing build numbers
« Reply #1 on: December 19, 2019, 08:31:53 am »
I find it a little odd that for the build number to auto increment the file version build number you need to 1) Build
That's exactly what "build number" means: every time you build your project, its number is increased.

Quote
and then 2) Compile or the build and file version build numbers are out of sync.
Compile should not change build number since you are only testing, but Build should change File Version information.
This is how things work on a professional environment using Continuous Integration tools.
The individual development and compiling [of team members] does not change build number, but commiting that to a central CI tool does change build number on a daily basis of building process.

Quote
Maybe it's just me... it took me a fair while to notice the anomaly and what caused it.
Could you elaborate?

trev

  • Hero Member
  • *****
  • Posts: 823
  • Former Delphi 1-7 and 10.2 User
Re: Auto incrementing build numbers
« Reply #2 on: December 19, 2019, 11:29:01 am »
Quote
Maybe it's just me... it took me a fair while to notice the anomaly and what caused it.
Could you elaborate?

If I build a project 5 times, the application version information does not change. If I subsequently compile the application once, the application version number increments by 5.
o Lazarus v2.1.0 r63598, FPC v3.3.1 r45778, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 993
Re: Auto incrementing build numbers
« Reply #3 on: December 20, 2019, 05:48:27 pm »
Quote
Maybe it's just me... it took me a fair while to notice the anomaly and what caused it.
Could you elaborate?
If I build a project 5 times, the application version information does not change. If I subsequently compile the application once, the application version number increments by 5.
Please, open a bug report and link to this thread.
https://bugs.freepascal.org/my_view_page.php

 

TinyPortal © 2005-2018