-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Replaced globby with native glob #233481
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
Replaced globby with native glob #233481
Conversation
Pinging @elastic/kibana-security (Team:Security) |
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.
As part of this, can we move globby
to the devDependencies
section of our package.json
?
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.
Visualization owned file LGTM, thanks for the change
## Summary Replaced `globby` with native glob. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) __Related: https://github.com/elastic/kibana/issues/233193__ --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
## Summary Replaced `globby` with native glob. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) __Related: https://github.com/elastic/kibana/issues/233193__ --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
## Summary Replaced `globby` with native glob. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) __Related: https://github.com/elastic/kibana/issues/233193__ --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
) ## Summary Fixes elastic#236004 After elastic#233481 the resulting glob paths are yielded as windows paths, but probably processed as unix paths (since `globby` always returned paths with unix separators). This PR applies a normalization on resulting paths. (cherry picked from commit 1cac4d2) # Conflicts: # x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/content_loaders/defend_insights_loader.ts
) ## Summary Fixes elastic#236004 After elastic#233481 the resulting glob paths are yielded as windows paths, but probably processed as unix paths (since `globby` always returned paths with unix separators). This PR applies a normalization on resulting paths. (cherry picked from commit 1cac4d2) # Conflicts: # x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/content_loaders/defend_insights_loader.ts
) ## Summary Fixes elastic#236004 After elastic#233481 the resulting glob paths are yielded as windows paths, but probably processed as unix paths (since `globby` always returned paths with unix separators). This PR applies a normalization on resulting paths. (cherry picked from commit 1cac4d2) # Conflicts: # x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/content_loaders/defend_insights_loader.ts
…) (#237101) # Backport This will backport the following commits from `main` to `9.1`: - [Normalize resulting paths to unix paths after glob usage (#236044)](#236044) <!--- Backport version: 10.0.2 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alex Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-09-29T08:42:25Z","message":"Normalize resulting paths to unix paths after glob usage (#236044)\n\n## Summary\nFixes https://github.com/elastic/kibana/issues/236004\n\nAfter #233481 the resulting glob\npaths are yielded as windows paths, but probably processed as unix paths\n(since `globby` always returned paths with unix separators).\n\nThis PR applies a normalization on resulting paths.","sha":"1cac4d2b739423bbfb2c8d93cc60a02a456707f4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:version","v9.2.0","v8.19.5","v9.1.5"],"title":"Normalize resulting paths to unix paths after glob usage","number":236044,"url":"https://github.com/elastic/kibana/pull/236044","mergeCommit":{"message":"Normalize resulting paths to unix paths after glob usage (#236044)\n\n## Summary\nFixes https://github.com/elastic/kibana/issues/236004\n\nAfter #233481 the resulting glob\npaths are yielded as windows paths, but probably processed as unix paths\n(since `globby` always returned paths with unix separators).\n\nThis PR applies a normalization on resulting paths.","sha":"1cac4d2b739423bbfb2c8d93cc60a02a456707f4"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236044","number":236044,"mergeCommit":{"message":"Normalize resulting paths to unix paths after glob usage (#236044)\n\n## Summary\nFixes https://github.com/elastic/kibana/issues/236004\n\nAfter #233481 the resulting glob\npaths are yielded as windows paths, but probably processed as unix paths\n(since `globby` always returned paths with unix separators).\n\nThis PR applies a normalization on resulting paths.","sha":"1cac4d2b739423bbfb2c8d93cc60a02a456707f4"}},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Summary
Replaced
globby
with native glob.Checklist
release_note:*
label is applied per the guidelinesRelated: #233193