Skip to content

Ensure minimum git version is available

Ash McKenzie requested to merge ashmckenzie/check-git-version-in-preflight into main

What does this Merge Request do and why?

This MR ensures that a gdk install or gdk update checks to ensure the minimum version of git is installed before proceeding, e.g

$ gdk update
ERROR: Git version 2.31.0 detected, please install Git version 9.99.0 or higher.
make: *** [preflight-checks] Error 1

(I temporarily changed GDK::Diagnostic::Git::MINIMUM_VERSION to 9.99.9 😀 to demostrate)

Merge Request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.
Edited by Ash McKenzie

Merge request reports

Loading