-
-
Notifications
You must be signed in to change notification settings - Fork 29
fix(files): prune dependency dirs in expandFileGlobs before fast-glob traversal #410
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
bddfaed
8c4d39e
cac1e2d
97d175d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ import { isRepoRelativePath, normalizePath, resolveConfigInput } from '../utils/ | |
| import { parseCliArgs, showVersion, classifyTargets, expandTargetFileReferences, type CLIOptions } from './args.js'; | ||
| import { showHelp } from './help.js'; | ||
| import { buildLocalEventContext, buildFileEventContext } from './context.js'; | ||
| import { WardenGlobExpansionError } from './files.js'; | ||
| import { getRepoRoot, getHeadSha, refExists, getDefaultBranch } from './git.js'; | ||
| import { renderTerminalReport, filterReports } from './terminal.js'; | ||
| import { | ||
|
|
@@ -1271,12 +1272,22 @@ async function runFileMode(filePatterns: string[], options: CLIOptions, reporter | |
|
|
||
| // Build context from files | ||
| reporter.step('Building context from files...'); | ||
| const context = await buildFileEventContext({ | ||
| patterns: filePatterns, | ||
| cwd, | ||
| ignore: config?.defaults?.ignore, | ||
| scan: config?.defaults?.scan, | ||
| }); | ||
| let context: Awaited<ReturnType<typeof buildFileEventContext>>; | ||
| try { | ||
| context = await buildFileEventContext({ | ||
| patterns: filePatterns, | ||
| cwd, | ||
| ignore: config?.defaults?.ignore, | ||
| scan: config?.defaults?.scan, | ||
| }); | ||
| } catch (error) { | ||
| if (error instanceof WardenGlobExpansionError) { | ||
| reporter.error(error.message); | ||
| return 1; | ||
| } | ||
| reporter.error('Failed to build context'); | ||
| return 1; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Context build hides error textLow Severity The new Reviewed by Cursor Bugbot for commit 8c4d39e. Configure here. |
||
| } | ||
|
|
||
| const pullRequest = context.pullRequest; | ||
| if (!pullRequest) { | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.