bmatcuk/doublestar (github.com/bmatcuk/doublestar)
### [`v4.6.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.6.1): Fixed Match bug with patterns like `a/**/`
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.6.0...v4.6.1)
Thanks [@mmxmb](https://redirect.github.com/mmxmb) for submitting the bug and opening a PR in [#89](https://redirect.github.com/bmatcuk/doublestar/issues/89)!
### [`v4.6.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.6.0): Added WithNoFollow
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.5.0...v4.6.0)
Added a `WithNoFollow` option for Glob, GlobWalk, and FilepathGlob that will cause doublestar to not follow symlinks. However, note that there is a caveat due to io/fs limitations: if the pattern mentions a symlink before any meta characters, those symlinks will be followed. For example: `path/to/symlink/*` *will* follow the symlink, assuming it is valid and links to a directory. `path/**` and `path/*/symlink/*` will *not* follow the symlink.
### [`v4.5.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.5.0): Added WithFilesOnly
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.4.0...v4.5.0)
Added a new option for Glob, GlobWalk, and FilepathGlob called `WithFilesOnly` that will cause these functions to only return files. For example, a pattern such as `folder/*` will only return the files inside the folder, and not any directories. Note that symlinks to directories *are* considered directories for this purpose.
### [`v4.4.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.4.0): Added WithFailOnPatternNotExist
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.2...v4.4.0)
Added the option `WithFailOnPatternNotExist` to Glob, GlobWalk, and FilepathGlob. This option will cause doublestar to abort if the pattern references a path that does not exist, for example, `nonexistent/path/*`.
### [`v4.3.2`](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.1...v4.3.2)
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.1...v4.3.2)
### [`v4.3.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.3.1): Fixed Glob Bug With Pattern That Has Nonexistent Path And WithFailOnIOErrors
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.0...v4.3.1)
If the `WithFailOnIOErrors` option was set and the pattern contained a reference to a nonexistent path (such as `nonexistent/path/*`), Glob would return `ErrNotExist`. It now returns an empty result with no error as expected.
For anyone that would prefer that doublestar returned an error, I'll be adding that as a feature (and a separate option) later.
### [`v4.3.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.3.0): Added Support for GlobOptions
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.2.0...v4.3.0)
This release adds options to `Glob`, `GlobWalk`, and `FilepathGlob`. At the moment, the only option is `WithFailOnIOErrors` that will cause doublestar to fail and return an error if it encounters any IO errors. It can be used like:
```go
doublestar.Glob(fsys, pattern, WithFailOnIOErrors())
```
Thanks [@fho](https://redirect.github.com/fho)!
### [`v4.2.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.2.0): Added Support for SkipDir to GlobWalk
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.1.0...v4.2.0)
Your callback to GlobWalk can now return SkipDir which functions as it does in the standard library: if the current path is a directory, GlobWalk will not recurse into it. If the current path is not a directory, GlobWalk will stop processing the parent directory.
### [`v4.1.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.1.0): Added FilepathGlob Convenience Func; Better Support for Escaped Meta Chars
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.3...v4.1.0)
FilepathGlob is a convenience function for people who want a drop-in replacement for `filepath.Glob()`.
Thanks [sebastien-rosset](https://redirect.github.com/sebastien-rosset)
### [`v4.0.3`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.3): Fixed a bug with {alts} and */** backtracking
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.2...v4.0.3)
### [`v4.0.2`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.2): Fixed a bug with escaped characters
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.1...v4.0.2)
Thanks [@micimize](https://redirect.github.com/micimize)!
### [`v4.0.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.1): Fixed Windows Bugs
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.0...v4.0.1)
Fixed some Windows bugs in v4.0.0.
### [`v4.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.0): Complete Rewrite for Performance and io/fs Support
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v3.0.0...v4.0.0)
v4 is a complete rewrite with a focus on performance. Additionally, doublestar has been updated to use the new io/fs package for filesystem access. As a result, it is only supported by golang v1.16+. See README.md and UPGRADING.md for additional information.
### [`v3.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v3.0.0): Negate Character Classes with Exclamation Marks or Carets
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.4...v3.0.0)
To match POSIX patterns, v3 of doublestar supports negating character classes with exclamation marks (ie, `[!...]`) in addition to carets (`[^...]`). This is a minor breaking change if any of your existing patterns happen to include an exclamation mark as the first character in a character class. To fix the issue, simply escape the exclamation mark (ie, `[\!...]`) or move it later in the character class (ie, \`\[...!...]').
### [`v2.0.4`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.4): Fixed Minor Recursion Bug
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.3...v2.0.4)
Thanks [@pavelbazika](https://redirect.github.com/pavelbazika)!
### [`v2.0.3`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.3): Reduced Allocations
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.2...v2.0.3)
This release reduces some of the allocations in Match and PathMatch, improving performance. I've also added benchmarks in the tests.
### [`v2.0.2`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.2): Close Directories Immediately
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.1...v2.0.2)
A small change to close directories immediately, rather than deferring. Thanks [@luhring](https://redirect.github.com/luhring)!
### [`v2.0.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.1): Fixed bug clobbering results if Readdir fails
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.0...v2.0.1)
If `Readdir` failed, doublestar was returning `nil` instead of the accumulated results. Thanks for the bug report [@InfiniteTF](https://redirect.github.com/InfiniteTF)!
### [`v2.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.0): Further abstraction for OS interface
[Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v1.3.4...v2.0.0)
doublestar only needs `Readdir` and the `Closer` interface for the type returned by `OS.Open()`. By changing the return type to this basic interface, it's even easier to abstract the calls to the filesystem for testing. This is an API change, though, necessitating a major version bump. Updating should be fairly easy. See: https://github.com/bmatcuk/doublestar/blob/master/UPGRADING.md
Thanks for the suggestion [@c4milo](https://redirect.github.com/c4milo)!
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" in timezone America/Toronto, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
Jira: DT-4929
This PR contains the following updates:
v1.3.4
->v4.6.1
Release Notes
bmatcuk/doublestar (github.com/bmatcuk/doublestar)
### [`v4.6.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.6.1): Fixed Match bug with patterns like `a/**/` [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.6.0...v4.6.1) Thanks [@mmxmb](https://redirect.github.com/mmxmb) for submitting the bug and opening a PR in [#89](https://redirect.github.com/bmatcuk/doublestar/issues/89)! ### [`v4.6.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.6.0): Added WithNoFollow [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.5.0...v4.6.0) Added a `WithNoFollow` option for Glob, GlobWalk, and FilepathGlob that will cause doublestar to not follow symlinks. However, note that there is a caveat due to io/fs limitations: if the pattern mentions a symlink before any meta characters, those symlinks will be followed. For example: `path/to/symlink/*` *will* follow the symlink, assuming it is valid and links to a directory. `path/**` and `path/*/symlink/*` will *not* follow the symlink. ### [`v4.5.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.5.0): Added WithFilesOnly [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.4.0...v4.5.0) Added a new option for Glob, GlobWalk, and FilepathGlob called `WithFilesOnly` that will cause these functions to only return files. For example, a pattern such as `folder/*` will only return the files inside the folder, and not any directories. Note that symlinks to directories *are* considered directories for this purpose. ### [`v4.4.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.4.0): Added WithFailOnPatternNotExist [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.2...v4.4.0) Added the option `WithFailOnPatternNotExist` to Glob, GlobWalk, and FilepathGlob. This option will cause doublestar to abort if the pattern references a path that does not exist, for example, `nonexistent/path/*`. ### [`v4.3.2`](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.1...v4.3.2) [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.1...v4.3.2) ### [`v4.3.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.3.1): Fixed Glob Bug With Pattern That Has Nonexistent Path And WithFailOnIOErrors [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.3.0...v4.3.1) If the `WithFailOnIOErrors` option was set and the pattern contained a reference to a nonexistent path (such as `nonexistent/path/*`), Glob would return `ErrNotExist`. It now returns an empty result with no error as expected. For anyone that would prefer that doublestar returned an error, I'll be adding that as a feature (and a separate option) later. ### [`v4.3.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.3.0): Added Support for GlobOptions [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.2.0...v4.3.0) This release adds options to `Glob`, `GlobWalk`, and `FilepathGlob`. At the moment, the only option is `WithFailOnIOErrors` that will cause doublestar to fail and return an error if it encounters any IO errors. It can be used like: ```go doublestar.Glob(fsys, pattern, WithFailOnIOErrors()) ``` Thanks [@fho](https://redirect.github.com/fho)! ### [`v4.2.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.2.0): Added Support for SkipDir to GlobWalk [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.1.0...v4.2.0) Your callback to GlobWalk can now return SkipDir which functions as it does in the standard library: if the current path is a directory, GlobWalk will not recurse into it. If the current path is not a directory, GlobWalk will stop processing the parent directory. ### [`v4.1.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.1.0): Added FilepathGlob Convenience Func; Better Support for Escaped Meta Chars [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.3...v4.1.0) FilepathGlob is a convenience function for people who want a drop-in replacement for `filepath.Glob()`. Thanks [sebastien-rosset](https://redirect.github.com/sebastien-rosset) ### [`v4.0.3`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.3): Fixed a bug with {alts} and */** backtracking [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.2...v4.0.3) ### [`v4.0.2`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.2): Fixed a bug with escaped characters [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.1...v4.0.2) Thanks [@micimize](https://redirect.github.com/micimize)! ### [`v4.0.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.1): Fixed Windows Bugs [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v4.0.0...v4.0.1) Fixed some Windows bugs in v4.0.0. ### [`v4.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v4.0.0): Complete Rewrite for Performance and io/fs Support [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v3.0.0...v4.0.0) v4 is a complete rewrite with a focus on performance. Additionally, doublestar has been updated to use the new io/fs package for filesystem access. As a result, it is only supported by golang v1.16+. See README.md and UPGRADING.md for additional information. ### [`v3.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v3.0.0): Negate Character Classes with Exclamation Marks or Carets [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.4...v3.0.0) To match POSIX patterns, v3 of doublestar supports negating character classes with exclamation marks (ie, `[!...]`) in addition to carets (`[^...]`). This is a minor breaking change if any of your existing patterns happen to include an exclamation mark as the first character in a character class. To fix the issue, simply escape the exclamation mark (ie, `[\!...]`) or move it later in the character class (ie, \`\[...!...]'). ### [`v2.0.4`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.4): Fixed Minor Recursion Bug [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.3...v2.0.4) Thanks [@pavelbazika](https://redirect.github.com/pavelbazika)! ### [`v2.0.3`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.3): Reduced Allocations [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.2...v2.0.3) This release reduces some of the allocations in Match and PathMatch, improving performance. I've also added benchmarks in the tests. ### [`v2.0.2`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.2): Close Directories Immediately [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.1...v2.0.2) A small change to close directories immediately, rather than deferring. Thanks [@luhring](https://redirect.github.com/luhring)! ### [`v2.0.1`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.1): Fixed bug clobbering results if Readdir fails [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v2.0.0...v2.0.1) If `Readdir` failed, doublestar was returning `nil` instead of the accumulated results. Thanks for the bug report [@InfiniteTF](https://redirect.github.com/InfiniteTF)! ### [`v2.0.0`](https://redirect.github.com/bmatcuk/doublestar/releases/tag/v2.0.0): Further abstraction for OS interface [Compare Source](https://redirect.github.com/bmatcuk/doublestar/compare/v1.3.4...v2.0.0) doublestar only needs `Readdir` and the `Closer` interface for the type returned by `OS.Open()`. By changing the return type to this basic interface, it's even easier to abstract the calls to the filesystem for testing. This is an API change, though, necessitating a major version bump. Updating should be fairly easy. See: https://github.com/bmatcuk/doublestar/blob/master/UPGRADING.md Thanks for the suggestion [@c4milo](https://redirect.github.com/c4milo)!Configuration
📅 Schedule: Branch creation - "before 4am on Monday" in timezone America/Toronto, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.