Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1076
  • Former Delphi 1-7, 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 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1008
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1076
  • Former Delphi 1-7, 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 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1008
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