-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[turborepo] error hashing package files: invalid glob: failed to parse glob expression from 1.10.4-canary.0 onwards #5378
Comments
Could you try upgrading to |
I'm experiencing the same in
It's because I want to exclude one directory from the inputs array: "inputs": [
"*.{js,ts}",
"src/**/*",
"public/**/*",
"package.json",
"{j,t}sconfig.*json",
":!cypress/"
], Is there any other way to do that? UPDATE: |
I'm on 1.10.9, this is also treated as an invalid glob:
This glob does work:
Additionally, In my project turborepo does not throw an error, but instead hangs. However, I cannot reproduce this. The solution described in #5468 did not work for me.
|
I had some simple, but invalid globs that used parenthesis. "!(foo/bar/baz.tsx)" The parenthesis were an artifact from a previous glob implementation and were no longer needed. I was able to refactor these globs not to use the parenthesis and they worked. "!foo/bar/baz.tsx" While this might not be super-helpful for all circumstances, I thought I'd share this as a possible test case to consider while fixing this issue. |
After upgrading from 1.10.16 to 1.11.0 this pattern in my globalDependencies is considered invalid:
I thought it was related to this issue but if needed I can open a new one. |
I think this used to work, but now its not:
https://unix.stackexchange.com/questions/238809/match-zero-or-more-operator-in-shell-globbing |
Hey all, apologies for the thrash in glob support, different libraries have different ideas about syntax. We've now documented what we're committed to supporting in terms of glob syntax: https://turbo.build/repo/docs/reference/configuration#glob-specification-for-paths I'm going to close this issue, but if you have a glob that is failing to parse and that is using the supported syntax, please file a new issue. |
What version of Turborepo are you using?
1.10.6
What package manager are you using / does the bug impact?
Yarn v2/v3 (node_modules linker only)
What operating system are you using?
Linux
Describe the Bug
Ends with the following error:
I'm also unable to run a
--summarize
due to the same errorErrors:
Changes between 1.10.3 & 1.10.4-canary.0
v1.10.3...v1.10.4-canary.0
Expected Behavior
It builds correctly
To Reproduce
TURBO_LOG_LEVEL=TRACE turbo --verbosity=3 build
Reproduction Repo
No response
The text was updated successfully, but these errors were encountered: