Skip to content

Fix: Improve cross-platform compatibility for paths - #333

Merged
atilaneves merged 5 commits into
atilaneves:masterfrom
cetio:master
Sep 14, 2026
Merged

atilaneves merged 5 commits into
atilaneves:masterfrom
cetio:master

Conversation

@cetio

@cetio cetio commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Encountered some issues on Windows:

  1. removePackage looks for the Linux file name "/package.d" for sanitization.
  2. writeUtMainFile assumes a leading / (POSIX). On Windows this slices into the middle of drive/UNC roots.
  3. dubFilesToAbsPaths runs removePackage before buildNormalizedPath, so the package-suffix check uses an unnormalized path.

I fixed these 3 and added tests for removePackage and defaultUtMainPath (the latter with Windows-specific cases for drive/UNC roots).

@cetio

cetio commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

I did notice a MacOS failure with DMD, but I didn't implement a fix for this because it was a problem moreso with DMD than with Unit Threaded.

@atilaneves
atilaneves merged commit 64c8c75 into atilaneves:master Sep 14, 2026
11 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