Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🩹 fix(patch): windows bootstrap path resolution #2636

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

kellymears
Copy link
Member

@kellymears kellymears commented Aug 12, 2024

First error to fix in order to provide native support for Windows. We have to start here because it happens during bootstrapping, so not much of the application can even run.

A similar fix may also need to be applied to @roots/bud-framework/module and @roots/fs. Not sure.

From vite

They are calling path.posix.normalize, which is the same as normalize from node:path/posix:

https://github.com/vitejs/vite/blob/33d3cca78607e14e4d0b13e7012d065a94d184b1/packages/vite/src/node/utils.ts#L62-L64

Do we also need to prepend the / in windows? Don't know yet. See:

https://github.com/vitejs/vite/blob/33d3cca78607e14e4d0b13e7012d065a94d184b1/packages/vite/src/node/utils.ts#L63C30-L63C33

Type of change

PATCH: backwards compatible change

@github-actions github-actions bot added @roots/bud-framework internal repository specific PR or issue labels Aug 12, 2024
@kellymears kellymears self-assigned this Oct 1, 2024
@kellymears kellymears added the 🚀! automerge label Oct 1, 2024
@kodiakhq kodiakhq bot merged commit 803310f into main Oct 1, 2024
8 checks passed
@kodiakhq kodiakhq bot deleted the 2635-fix-posix branch October 1, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal repository specific PR or issue @roots/bud-framework 🚀! automerge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant