macchina-io / macchina.io

macchina.io EDGE is a powerful C++ and JavaScript SDK for edge devices, multi-service IoT gateways and connected embedded systems.
https://macchina.io
GNU General Public License v3.0
512 stars 152 forks source link

Bundle App set a wrong number version #118

Open SystemDataModel opened 7 months ago

SystemDataModel commented 7 months ago

Expected Behavior

I would like to create a bundle with version 2023.1.00001

I launch bunclle App with option --version=2023.1.00001

Actual Behavior

Bundle App create a bundle with version = 2023.1.1 (not 2023.1.00001 with 0 before 1)

Steps to Reproduce

Run bundle App

macchina.io Version

2023.1 (Latest version on my private repository)

Compiler and Version

g++ 11.4.1

Operating System and Version

Oracle Linux 9.3

Other Relevant Information

obiltschnig commented 7 months ago

This is not supported, as the versioning scheme for bundles is .., as handled by the Poco::OSP::Version class. The three components are always tretated as integers internally, thereby losing leading zeroes. You could rename the bundle files via other means as part of your build process, but internally, the leading zeroes will never be preserved.

SystemDataModel commented 7 months ago

OK,

You can close this issue.

Thanks