Skip to content

GH2666: Fix GetFiles/GetDirectories/GetPaths when brace expansion is the only path segment#4774

Merged
gep13 merged 1 commit into
cake-build:developfrom
devlead:feature/gh-2666
Mar 16, 2026
Merged

GH2666: Fix GetFiles/GetDirectories/GetPaths when brace expansion is the only path segment#4774
gep13 merged 1 commit into
cake-build:developfrom
devlead:feature/gh-2666

Conversation

@devlead

@devlead devlead commented Mar 16, 2026

Copy link
Copy Markdown
Member
  • In GlobVisitor, run FindCandidates for any non-identifier path segment so patterns like "Dir/{package.json}" or "Dir/{a,b,c}" are matched instead of skipped
  • Extend GlobberFixture.UnixLike with /Working/Project and sample files for brace-expansion-only-segment tests
  • Update existing globber tests that match under /Working to include the new fixture paths and counts
  • Add unit tests for single and multiple alternatives when brace expansion is the only segment
  • Add integration tests for GetFiles, GetDirectories, and GetPaths with brace-expansion-only-segment patterns
  • fixes GetFiles() using Glob curly braces gives empty result #2666

…xpansion is the only path segment

- In GlobVisitor, run FindCandidates for any non-identifier path segment so patterns like "Dir/{package.json}" or "Dir/{a,b,c}" are matched instead of skipped
- Extend GlobberFixture.UnixLike with /Working/Project and sample files for brace-expansion-only-segment tests
- Update existing globber tests that match under /Working to include the new fixture paths and counts
- Add unit tests for single and multiple alternatives when brace expansion is the only segment
- Add integration tests for GetFiles, GetDirectories, and GetPaths with brace-expansion-only-segment patterns
- fixes cake-build#2666

@gep13 gep13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gep13

gep13 commented Mar 16, 2026

Copy link
Copy Markdown
Member

@devlead thanks for getting this added!

@gep13 gep13 merged commit dc355a5 into cake-build:develop Mar 16, 2026
17 checks passed
This was referenced May 22, 2026
This was referenced May 25, 2026
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

Successfully merging this pull request may close these issues.

GetFiles() using Glob curly braces gives empty result

2 participants