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: update glob to version 8 and fix broken tests #297

Merged
merged 2 commits into from May 11, 2022

Conversation

guilhermelimak
Copy link
Contributor

@guilhermelimak guilhermelimak commented May 10, 2022

In this release glob stopped accepting backward slashes on it's patterns, since path.join will return backward slashes on windows they have to be replaced by a forward slash which is the posix separator.

I'm not entirely sure about all the implications of this change, specially regarding performance but all the tests seem to be passing and everything should work normally AFAIK since windows accept both backward and forward slashes as path separator.

Closes #281 since glob is already being updated here.

Checklist

In this release glob stopped accepting backward slashes on it's patterns, since `path.join` wil lreturn backward slashes on windows it they have to be replaced by a forward slash which is the posix separator.

I'm not entirely sure about all the consequences of this
change but all the tests seem to be passing and everything should work normally AFAIK since windows accept both backward and forward slashes as path separator.

Closes fastify#281 since glob is already being updated here.
index.js Outdated Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@climba03003 climba03003 left a comment

Choose a reason for hiding this comment

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

LGTM.

@mcollina mcollina merged commit 654c7f5 into fastify:master May 11, 2022
@ziimakc
Copy link
Contributor

ziimakc commented May 14, 2022

@mcollina can we please release a new version with this fix? wildcard: false currently not working on windows.

@mcollina
Copy link
Member

v6.1.0 released.

@ziimakc ziimakc mentioned this pull request May 15, 2022
4 tasks
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.

None yet

4 participants