-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add version to the binary during build #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Example of the problem can be seen here #11 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about using an obvious placeholder in the patch to make the system more clear?
Like changing the current patch:
imgtool-packing/patches/0008-Imgtool-Append-arduino-to-version-string.patch
Lines 18 to 19 in 5619cae
-imgtool_version = "1.8.0" | |
+imgtool_version = "1.8.0-arduino" |
To something like this:
-imgtool_version = "1.8.0"
+imgtool_version = "ARDUINO_VERSION_PLACEHOLDER"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot I was going to make one follow-up suggestion if the placeholder idea was accepted:
Update the patch message to reflect the new nature of the patch:
Subject: [PATCH] Imgtool: Append -arduino to version string |
54dfa22
to
0c82b4f
Compare
Test release here https://github.com/arduino/imgtool-packing/releases/tag/1.8.0-rc7 |
|
Replace the string in the patch overriding the version, This way when running
imgtool version
the correct version is reported.