forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[plugin-api] Add
default_glob_match_error_behavior
to `SourcesField…
…`. (pantsbuild#13578) This optional field allows specifying that a default glob value for a source field is optional (i.e. should not warn or err in case the glob does not match any files). fixes pantsbuild#13567 There was a bug in the `SingleSourceField.path_globs()` that was also fixed in this PR. If the field has a default value then that would use the wrong glob expansion conjunction when your provided source value would have the same set of characters as the default value. For example, a default value of `"file"` and a provided value of `"life"` would treat this as if it was the default value was provided. Note however, that with a single glob, the conjunction used does not matter (but when using the new default glob error override introduced in this PR, this distinction does matter).
- Loading branch information
Showing
2 changed files
with
142 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters