ITADN

Fix issue on windows with Erlang/OTP 28 which causes temporary directories to get created at the wrong path.

#193Pull Requesti-am-orestis 创建于 2025-06-04已合并
I
i-am-orestiscommented
In ec_file:tmp/0, a call to erlang:system_info(system_architecture) is used in order to determine the location to create temporary directories for each operating system. In OTP28, the result of the call is not the expected "win32" string, but the target triplet (i.e. "x86_64-pc-windows"). As a result, temporary directories are created at the wrong location, which causes unexpected behavior in downstream packages. The fix uses os:type/0 to detect whether we are currently running on windows which has a more stable result.
合并状态:已合并 合并于 2025-06-04 关闭于 2025-06-04 0 条评论