Skip to content

Conversation

@nadzyah
Copy link
Contributor

@nadzyah nadzyah commented Jul 8, 2025

This PR adds glob pattern support to the exclude field in exclude-crate-paths.

Now you can exclude files by pattern instead of just exact names:

exclude-crate-paths = [
    { name = "ring", exclude = "pregenerated/*.o" },
    { name = "*", exclude = "tests" },
    { name = "openssl-sys", exclude = "**/*.a" }
]

Helpful in removing build artefacts, platform-specific binaries, and reducing vendor directory size without having to list every single file.
Backwards compatible - existing exact path exclusions continue to work unchanged.
Fixes #122

@nadzyah nadzyah force-pushed the glob-file-pattern-support branch 3 times, most recently from ef9cd09 to f66e8ca Compare July 9, 2025 08:41
Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

@nadzyah nadzyah force-pushed the glob-file-pattern-support branch from f66e8ca to b73a765 Compare July 9, 2025 14:56
@nadzyah nadzyah requested a review from cgwalters July 9, 2025 15:01
@cgwalters cgwalters merged commit 333a47f into coreos:main Jul 9, 2025
6 checks passed
@nadzyah nadzyah deleted the glob-file-pattern-support branch July 9, 2025 21:14
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.

Support glob patterns in exclude paths (e.g., *.o to exclude all object files)

2 participants