-
Notifications
You must be signed in to change notification settings - Fork 100
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
Upgrade glob to v10 #404
Upgrade glob to v10 #404
Conversation
Only 1 test is failing |
Windows is failing for now Edit: not sure how to fix it |
@@ -345,7 +343,7 @@ async function fastifyStatic (fastify, opts) { | |||
const winSeparatorRegex = new RegExp(`\\${path.win32.sep}`, 'g') | |||
|
|||
for (const rootPath of Array.isArray(sendOptions.root) ? sendOptions.root : [sendOptions.root]) { | |||
const files = await globPromise(path.join(rootPath, globPattern).replace(winSeparatorRegex, path.posix.sep), { nodir: true, dot: opts.serveDotFiles }) | |||
const files = await glob(path.join(rootPath, globPattern).replace(winSeparatorRegex, path.posix.sep), { follow: true, nodir: true, dot: opts.serveDotFiles }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check what happens here, when glob is fed with the windows related options
This reverts commit 5038801.
I ping @isaacs, maybe he has some hint on how to fix it. Maybe using posix: true? |
This reverts commit d406405.
Time to install windows. |
@gurgunday |
This isn't possible as glob dropped support for node 14 in v9.x and we're still supporting (and testing against) node 14 in the CI. :( |
node 14 tests pass so far and this has to be a semver major anyway. |
Yeah even after purging Windows from all my machines, it seems to still cause me trouble 🤠 Without a hint on why things aren't working, I can only keep commit-guessing 🤣 |
This reverts commit baf24ce.
I'll try again on a Windows machine |
Checklist
npm run test
andnpm run benchmark
and the Code of conduct