Before I propose this to the core team via mailing list, does anyone know of the incantation to get the exact OTP version? I’ve found otp_version and I see that –short-version will land in 1.13, but I’d really like to see the actual OTP_VERSION.
My motivation is that there can be a discrepancy between what I have in .tool-versions and what’s installed in a Docker container and I’d like CI to fail if versions don’t match. Ideally CI would fail quickly with a bash script in the test pipeline instead of needing to compile the whole project.
You’d have to ask the core team but I’m pretty sure the answer would be no unless there’s a proper API in OTP for it, I imagine something like :erlang.system_info(:otp_version) would be one idea how this could be exposed. But yeah, the versioning is tricky as described in one of the links above.