Skip to content

Conversation

@i-am-orestis
Copy link
Contributor

@i-am-orestis i-am-orestis commented Jun 4, 2025

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.

@ferd ferd merged commit b5d4046 into erlware:master Jun 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants