Skip to content

Add git tags to build releases#12

Open
oliv3r wants to merge 1 commit into
Ultimaker:UM2.1_JarJarfrom
oliv3r:add_versioning
Open

Add git tags to build releases#12
oliv3r wants to merge 1 commit into
Ultimaker:UM2.1_JarJarfrom
oliv3r:add_versioning

Conversation

@oliv3r
Copy link
Copy Markdown
Contributor

@oliv3r oliv3r commented Nov 13, 2018

This patch adds a new string to the boot-up message "Git version: xxx"
indicating the git revision number, if the Makefile was able to run 'git
describe'. First we see if we are on a tagged release, and use just the
version tag as version. If we're not an tagged release, we try to get
the exact hash. In case this fails, we try a fallback to get anything
from git describe.

If git describe is not available or the Makefile has trouble executing
it, we do not store the version at all.

Ideally we would overwrite the real version string, Marlin 1.0.0, but it
has to be investigated if that is worth it, as some 3rd parties may
relentlessly assume this string to identify Marlin.

Note, that 'unclean/dirty' builds are postfixed with the -dirty flag,
while this will never be seen in production, it is quite possible during
development. On the OLED display will wrap the 'irty' bit onto an
invisible line.

Note, that this was once part of JediMarlin commit 625f192
("Add git tags to build releases") but was unnecessarily removed in
commit 1a6a90e ("Start with supercleaning action, delete all unused code.")

Signed-off-by: Olliver Schinagl o.schinagl@ultimaker.com

This patch adds a new string to the boot-up message "Git version: xxx"
indicating the git revision number, if the Makefile was able to run 'git
describe'. First we see if we are on a tagged release, and use just the
version tag as version. If we're not an tagged release, we try to get
the exact hash. In case this fails, we try a fallback to get anything
from git describe.

If git describe is not available or the Makefile has trouble executing
it, we do not store the version at all.

Ideally we would overwrite the real version string, Marlin 1.0.0, but it
has to be investigated if that is worth it, as some 3rd parties may
relentlessly assume this string to identify Marlin.

Note, that 'unclean/dirty' builds are postfixed with the -dirty flag,
while this will never be seen in production, it is quite possible during
development. On the OLED display will wrap the 'irty' bit onto an
invisible line.

Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant