Skip to content

Widen copy_globs to accept any Glob.glob pattern type#1088

Closed
asinghvi17 wants to merge 1 commit into
JuliaLang:kc/distrofrom
asinghvi17:as/widen-copy-globs-type
Closed

Widen copy_globs to accept any Glob.glob pattern type#1088
asinghvi17 wants to merge 1 commit into
JuliaLang:kc/distrofrom
asinghvi17:as/widen-copy-globs-type

Conversation

@asinghvi17

Copy link
Copy Markdown
Contributor

Summary

  • Widens copy_globs from Vector{String} to Vector so each element can be anything Glob.glob accepts: a String, GlobMatch, or Vector of matchers (including Regex, Glob.FilenameMatch, etc.)
  • Enables case-insensitive matching via e.g. copy_globs=[[fn"license*"i]]
  • Adds isa AbstractString guard on the ** special-case so non-string patterns fall through to glob() directly

Addresses review feedback from @bauglir.

Test plan

  • Verified module loads and precompiles cleanly
  • Verified Vector{String} still works (backward compatible)
  • Verified GlobMatch, FilenameMatch, and mixed vectors are accepted
  • Verified isa AbstractString guard correctly dispatches string vs non-string patterns

🤖 Generated with Claude Code

Addresses review feedback from @bauglir: allow copy_globs elements to be
anything Glob.glob accepts (String, GlobMatch, Vector of matchers including
FilenameMatch, Regex, etc.) instead of only String. This enables
case-insensitive matching via e.g. `[[fn"license*"i]]`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KristofferC

Copy link
Copy Markdown
Member

CI seems to fail

@asinghvi17

Copy link
Copy Markdown
Contributor Author

This is integrated upstream now so we no longer need this.

@asinghvi17 asinghvi17 closed this May 28, 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.

2 participants