-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Wrong glob generated when using a nested directory or array of directories in booters options #8201
Comments
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
Thanks for opening the issue, @vvandens! I was able to replicate it at my end. For others' future reference, this behaviour has been acknowledged by the A workaround for now is to use |
Thanks for the feedback @achrinza. |
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
Thanks for the clarification, @vvandens. You're right, brace expansion does not work for single expressions. I've updated the PR. |
fixes #8201 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
Describe the bug
Setting
dirs
to either a directory or an array of directories in a booter options generates a bad glob pattern under the hood when one of the dir path is deeply nested (i.e. contains a/
in its relative path).When setting
dirs: ['dirA/sub', 'dirB']
in a booter options, the glob directories part generated is :@(dirA/sub|dirB)
fromBaseArtifactBooter.configure()
. This breaks the loading of the resources from both directories. Same applies for a single nested directorydirs: 'dirA/sub'
.@
pattern matching should not be used for directories, only for extensions.To solve the issue, a brace expansion should be generated for dirs, i.e.
{dirA/sub,dirB}
, when dirs is an array and nothing at all when it's a single string.Logs
No response
Additional information
No response
Reproduction
https://codesandbox.io/s/vigorous-andras-fhpeb?file=/src/application.ts
The text was updated successfully, but these errors were encountered: