What needs to get done
- Copy this function and its relevant tests to
craft-cli: https://github.com/canonical/craft-parts/blob/main/craft_parts/utils/formatting_utils.py
- Make a
craft-cli release
- Update craft apps to reference this function instead of their own instances of it.
- Make comments both here and in the
craft-parts implementation that the function exists in the other location so we can copy bug fixes if needed. (No functional changes in craft-parts)
Why it needs to get done
Reduced copy/pasting of code for improved maintainability