wellenvogel / esp32-nmea2000

nmea2000 gateway with ESP32
GNU General Public License v2.0
65 stars 31 forks source link

include time in auto-generated Version number #92

Closed TobiasE-github closed 3 weeks ago

TobiasE-github commented 1 month ago

Suggestion: Change Line 478 of extra_script.py from version="dev"+datetime.now().strftime("%Y%m%d") to : version="dev"+datetime.now().strftime("%Y%m%d-%H%M")

This is beneficial when compiling and testing multiple versions a day.

wellenvogel commented 1 month ago

This would mean to recompile everything on each compile call. This would dramatically increase the cycle time during development. Most probably the best idea would be to reorganize the version handling a bit and use a separate cpp for the version info that will be generated. So only this one would be recompiled. But I'm not sure if it is worse the effort. You still can go for a buildflag GWRELEASEVERSION.