Additional related thought: maybe we need to make this check more generic and compare machine CPU architecture with running JDK target architecture? Something similar to: https://github.com/runningcode/gradle-doctor/issues/209#issuecomment-1132645634 As hardware for Windows or Linux may benefit from ARM architecture in the future as well (maybe already there is some variants in the market).
Solves: https://github.com/runningcode/gradle-doctor/issues/209
Used
sysctl.proc_translated
API via bash in order to determine if process is running under Rosetta or not according to documentation: https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment#Determine-Whether-Your-App-Is-Running-as-a-Translated-BinaryAdditional related thought: maybe we need to make this check more generic and compare machine CPU architecture with running JDK target architecture? Something similar to: https://github.com/runningcode/gradle-doctor/issues/209#issuecomment-1132645634 As hardware for Windows or Linux may benefit from ARM architecture in the future as well (maybe already there is some variants in the market).