Skip to content

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

Merged
ferd merged 1 commit into
erlware:masterfrom
i-am-orestis:fix-resolution-of-tmp-dir-on-windows
Jun 4, 2025
Merged

Fix issue on windows with Erlang/OTP 28 which causes temporary directories to get created at the wrong path.#193
ferd merged 1 commit into
erlware:masterfrom
i-am-orestis:fix-resolution-of-tmp-dir-on-windows

Conversation

@i-am-orestis

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

Copy link
Copy Markdown
Contributor

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