diff options
| author | Sebastiaan van Stijn <github@gone.nl> | 2023-04-03 15:00:51 +0200 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2023-04-03 15:00:51 +0200 |
| commit | e59f7fba6aa067611d5597c3fc3279d0cfe1d25c (patch) | |
| tree | 0e98405574bf1fffd7e8cc8e773091eb73162038 /pkg | |
| parent | d2a5948ae839f6f06a9eee68924c64328f155ccc (diff) | |
| download | docker-e59f7fba6aa067611d5597c3fc3279d0cfe1d25c.tar.gz | |
pkg/fileutils: remove aliases for deprecated functions and types
commit 3c69b9f2c51a8bdd31c922244f7165848bc8b615 replaced these functions
and types with github.com/moby/patternmatcher. That commit has shipped with
docker 23.0, and BuildKit v0.11 no longer uses the old functions, so we can
remove these.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/fileutils/deprecated.go | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/pkg/fileutils/deprecated.go b/pkg/fileutils/deprecated.go deleted file mode 100644 index a4fc2d05e2..0000000000 --- a/pkg/fileutils/deprecated.go +++ /dev/null @@ -1,44 +0,0 @@ -package fileutils - -import "github.com/moby/patternmatcher" - -type ( - // PatternMatcher allows checking paths against a list of patterns. - // - // Deprecated: use github.com/moby/patternmatcher.PatternMatcher - PatternMatcher = patternmatcher.PatternMatcher - - // MatchInfo tracks information about parent dir matches while traversing a - // filesystem. - // - // Deprecated: use github.com/moby/patternmatcher.MatchInfo - MatchInfo = patternmatcher.MatchInfo - - // Pattern defines a single regexp used to filter file paths. - // - // Deprecated: use github.com/moby/patternmatcher.Pattern - Pattern = patternmatcher.Pattern -) - -var ( - // NewPatternMatcher creates a new matcher object for specific patterns that can - // be used later to match against patterns against paths - // - // Deprecated: use github.com/moby/patternmatcher.New - NewPatternMatcher = patternmatcher.New - - // Matches returns true if file matches any of the patterns - // and isn't excluded by any of the subsequent patterns. - // - // This implementation is buggy (it only checks a single parent dir against the - // pattern) and will be removed soon. Use MatchesOrParentMatches instead. - // - // Deprecated: use github.com/moby/patternmatcher.Matches - Matches = patternmatcher.Matches - - // MatchesOrParentMatches returns true if file matches any of the patterns - // and isn't excluded by any of the subsequent patterns. - // - // Deprecated: use github.com/moby/patternmatcher.MatchesOrParentMatches - MatchesOrParentMatches = patternmatcher.MatchesOrParentMatches -) |
