Skip to content

better git version info

What does this MR do?

My previous patch to embed git version info in nodeinfo had some issues, like it produced 2024.4.4-249-g04d45859e6 when building on current develop, which is arguably correct but not helpful (it should really say 2025.5.2-dev somewhere!)

  • if we're on a tag, trust package.json
  • if we're not, append the current commit hash

so for example, building on stable right now gets you 2025.4.4, and building on the parent of this commit gets you 2025.5.2-dev+g04d45859e6

the + is correct according to https://semver.org/

Contribution Guidelines

By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this merge request

Merge request reports

Loading