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: use POSIX paths for Windows require()s #520

Merged
merged 4 commits into from
Jul 13, 2021
Merged

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Jul 12, 2021

Currently we are using paths generated by path.join to generate paths for require(), which causes issues on Windows. This PR wraps the calls in slash(), which switches everything to use / posix-style paths, which is what require() expects.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Jul 12, 2021
Copy link

@lindsaylevine lindsaylevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:O

@ascorbic
Copy link
Contributor Author

Checked with user and confirmed fix.

@ascorbic ascorbic merged commit c34dbb0 into main Jul 13, 2021
@ascorbic ascorbic deleted the fix/windows-paths branch July 13, 2021 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants