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

issue in windows #179

Open
yellowjian opened this issue Jul 7, 2021 · 2 comments
Open

issue in windows #179

yellowjian opened this issue Jul 7, 2021 · 2 comments

Comments

@yellowjian
Copy link

yellowjian commented Jul 7, 2021

image

use await globby(globPattern) and has files in globPattern. but globby cannot find any file in pattern.

@fschwalm
Copy link

Hello @yellowjian!
Do you found any solutions or workarounds?

thank you

@rmcooper
Copy link

rmcooper commented Dec 9, 2021

Came here with the same problem, but after some research found that the glob pattern must only contain forward slashes. For example:

await globby(path.join(__dirname, 'files', '**').replace(/\\/g, '/'))

JacobLey pushed a commit to JacobLey/jacobley that referenced this issue Jul 1, 2022
globby requires the use of forward slashes as path separators and on Windows OS Path.join will use backslashes in creating the path. This change replaces backslashes to forward slashes to fix globby results for Windows. More info sindresorhus/globby#179
140948940 added a commit to 140948940/router that referenced this issue Mar 15, 2023
globby is have a bug in windows,can see this issues :sindresorhus/globby#179.
It's not a serious bug,But it makes learning to code tricky.
davidfirst added a commit to teambit/bit that referenced this issue Feb 7, 2024
We use `globby` package to resolve paths from the artifacts definition.
The `app-bundle` artifact has `'artifacts/app-bundle'` pattern on
linux/mac but `artifacts//app-bundle` on Windows.
Turns out that globby [doesn't support Windows
paths](sindresorhus/globby#179). This PR
changes the paths to Linux before sending to globby.
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

No branches or pull requests

3 participants