clang-format-lint-action
clang-format-lint-action copied to clipboard
fix: use custom strtobool if distutils not available
- distutils not available from python 3.12 so clang-format-lint-action will fail.
- strtobool is relatively simple function, we can use this function if the import fails.
inspiration:
- https://stackoverflow.com/questions/42248342/yes-no-prompt-in-python3-using-strtobool
Thanks, but this issue has already been resolved by pinning the Python version, can you reproduce the issue versions > v0.16 ?
Thanks, but this issue has already been resolved by pinning the Python version, can you reproduce the issue versions > v0.16 ? tried with latest version. its working . thank you
At some point we will need to change from the old python version, as it is a temporary solution. It is fine to think about how to migrate out.
How about completely removing distutils? What if the --inplace command line argument is just a flag?