File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ require (
14
14
github.com/docker/buildx v0.11.2
15
15
github.com/docker/cli v24.0.5+incompatible
16
16
github.com/docker/cli-docs-tool v0.6.0
17
- github.com/docker/docker v24.0.5+incompatible // v24.0.5-dev
17
+ github.com/docker/docker v24.0.5+incompatible
18
18
github.com/docker/go-connections v0.4.0
19
19
github.com/docker/go-units v0.5.0
20
20
github.com/fsnotify/fsevents v0.1.1
@@ -24,8 +24,8 @@ require (
24
24
github.com/jonboulle/clockwork v0.4.0
25
25
github.com/mattn/go-shellwords v1.0.12
26
26
github.com/mitchellh/mapstructure v1.5.0
27
- github.com/moby/buildkit v0.12.1 // v0.12 release branch
28
- github.com/moby/patternmatcher v0.5 .0
27
+ github.com/moby/buildkit v0.12.1
28
+ github.com/moby/patternmatcher v0.6 .0
29
29
github.com/moby/term v0.5.0
30
30
github.com/morikuni/aec v1.0.0
31
31
github.com/opencontainers/go-digest v1.0.0
Original file line number Diff line number Diff line change @@ -495,8 +495,8 @@ github.com/moby/buildkit v0.12.1 h1:vvMG7EZYCiQZpTtXQkvyeyj7HzT1JHhDWj+/aiGIzLM=
495
495
github.com/moby/buildkit v0.12.1 /go.mod h1:adB4y0SxxX8trnrY+oEulb48ODLqPO6pKMF0ppGcCoI =
496
496
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg =
497
497
github.com/moby/locker v1.0.1 /go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc =
498
- github.com/moby/patternmatcher v0.5 .0 h1:YCZgJOeULcxLw1Q+sVR636pmS7sPEn1Qo2iAN6M7DBo =
499
- github.com/moby/patternmatcher v0.5 .0 /go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc =
498
+ github.com/moby/patternmatcher v0.6 .0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk =
499
+ github.com/moby/patternmatcher v0.6 .0 /go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc =
500
500
github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8 =
501
501
github.com/moby/spdystream v0.2.0 /go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c =
502
502
github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78 =
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import (
22
22
"path/filepath"
23
23
"strings"
24
24
25
- "github.com/moby/buildkit/frontend/dockerfile/dockerignore"
26
25
"github.com/moby/patternmatcher"
26
+ "github.com/moby/patternmatcher/ignorefile"
27
27
)
28
28
29
29
type dockerPathMatcher struct {
@@ -133,13 +133,17 @@ func readDockerignorePatterns(repoRoot string) ([]string, error) {
133
133
}
134
134
defer func () { _ = f .Close () }()
135
135
136
- return dockerignore .ReadAll (f )
136
+ patterns , err := ignorefile .ReadAll (f )
137
+ if err != nil {
138
+ return nil , fmt .Errorf ("error reading .dockerignore: %w" , err )
139
+ }
140
+ return patterns , nil
137
141
}
138
142
139
143
func DockerIgnoreTesterFromContents (repoRoot string , contents string ) (* dockerPathMatcher , error ) {
140
- patterns , err := dockerignore .ReadAll (strings .NewReader (contents ))
144
+ patterns , err := ignorefile .ReadAll (strings .NewReader (contents ))
141
145
if err != nil {
142
- return nil , err
146
+ return nil , fmt . Errorf ( "error reading .dockerignore: %w" , err )
143
147
}
144
148
145
149
return NewDockerPatternMatcher (repoRoot , patterns )
You can’t perform that action at this time.
0 commit comments