Skip to content

Conversation

@pd93
Copy link
Member

@pd93 pd93 commented Feb 19, 2025

Fixes #2073

Removes zglob as a dependency and instead relies on mvdan's expand.Fields with globbing turned on for sources globs.

We also use expand.Fields in multiple other places to resolve things like ~ and environment variables. However, most of the time, we don't also want brace expansion or globbing, so I have separated this into two functions. One wraps expand.Literal which returns a single string with just the variables resolved, and the other wraps expand.Fields with braces and globbing enabled.

@pd93 pd93 force-pushed the 2073-fix-sources-brace-expansion branch 2 times, most recently from 12df237 to 2a1e9da Compare February 24, 2025 11:06
@pd93 pd93 marked this pull request as ready for review February 25, 2025 10:39
@pd93 pd93 marked this pull request as draft February 25, 2025 10:50
@pd93 pd93 force-pushed the 2073-fix-sources-brace-expansion branch from 2a1e9da to 0c25845 Compare February 25, 2025 14:23
@pd93 pd93 marked this pull request as ready for review February 25, 2025 14:29
@pd93 pd93 force-pushed the 2073-fix-sources-brace-expansion branch from 0c25845 to f990a60 Compare April 5, 2025 23:17
Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

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

👏

@pd93 pd93 merged commit a60c2ec into main Apr 19, 2025
14 checks passed
@pd93 pd93 deleted the 2073-fix-sources-brace-expansion branch April 19, 2025 10:51
pd93 added a commit that referenced this pull request Apr 19, 2025
@pd93 pd93 mentioned this pull request Apr 28, 2025
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.

Using glob curly braces expansion in sources prevents change detection for some files

3 participants