Skip to content

Commit

Permalink
replace dockerfile/dockerignore with patternmatcher/ignorefile
Browse files Browse the repository at this point in the history
The BuildKit dockerignore package was integrated in the patternmatcher
repository / module. This patch updates our uses of the BuildKit package
with its new location.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 22, 2023
1 parent 9f013f4 commit cb63b9c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 55 deletions.
12 changes: 12 additions & 0 deletions frontend/dockerfile/dockerignore/dockerignore_deprecated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package dockerignore

import (
"io"

"github.com/moby/patternmatcher/ignorefile"
)

// ReadAll is an alias for [ignorefile.ReadAll].
func ReadAll(reader io.Reader) ([]string, error) {
return ignorefile.ReadAll(reader)
}
54 changes: 0 additions & 54 deletions frontend/dockerfile/dockerignore/dockerignore_test.go

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ github.com/moby/locker
# github.com/moby/patternmatcher v0.6.0
## explicit; go 1.19
github.com/moby/patternmatcher
github.com/moby/patternmatcher/ignorefile
# github.com/moby/sys/mount v0.3.3
## explicit; go 1.16
github.com/moby/sys/mount
Expand Down

0 comments on commit cb63b9c

Please sign in to comment.