-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: do not revalidate glob expressions on each invocation (#1964)
doublestar now has an option to match without re-validating every time, see bmatcuk/doublestar#92 **What type of PR is this?** > Other **What package or component does this PR mostly affect?** > all **What does this PR do? Why is it needed?** Performance
- Loading branch information
Showing
12 changed files
with
78 additions
and
25 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,10 @@ import ( | |
) | ||
|
||
func TestReplace(t *testing.T) { | ||
// doublestar.StandardOS does NOT exist in doublestar/v4 | ||
// See: https://pkg.go.dev/github.com/bmatcuk/doublestar#OS | ||
// doublestar.MatchUnvalidated does NOT exist in doublestar <v4.7.0 | ||
// If we are able to initialize this variable, it validates that the dependency is properly | ||
// being replaced with github.com/bmatcuk/doublestar@v1.3.4 | ||
_ = doublestar.StandardOS | ||
// being replaced with github.com/bmatcuk/doublestar/[email protected] | ||
_ = doublestar.MatchUnvalidated | ||
} | ||
|
||
func TestPatch(t *testing.T) { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,10 @@ import ( | |
) | ||
|
||
func TestReplace(t *testing.T) { | ||
// doublestar.StandardOS does NOT exist in doublestar/v4 | ||
// See: https://pkg.go.dev/github.com/bmatcuk/doublestar#OS | ||
// doublestar.MatchUnvalidated does NOT exist in doublestar <v4.7.0 | ||
// If we are able to initialize this variable, it validates that the dependency is properly | ||
// being replaced with github.com/bmatcuk/doublestar@v1.3.4 | ||
_ = doublestar.StandardOS | ||
// being replaced with github.com/bmatcuk/doublestar/[email protected] | ||
_ = doublestar.MatchUnvalidated | ||
} | ||
|
||
func TestPatch(t *testing.T) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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