Skip to content

Ensure sha256sum is available before calling

Ash McKenzie requested to merge ashmckenzie/check-if-sha256sum-available into main

What does this Merge Request do and why?

On macOS, the sha256sum command is not available by default (and there isn't a suitable alternative) until the coreutils brew formula is installed. In this MR we check if sha256sum exists before attempting to use. Once coreutils is installed (via the 'platform setup' step) sha256sum will exist and can be used.

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.

Merge request reports