@@ -21,7 +21,6 @@ import (
21
21
)
22
22
23
23
const (
24
- keyOverrideExcludes = "override-excludes"
25
24
keyIncludePatterns = "include-patterns"
26
25
keyExcludePatterns = "exclude-patterns"
27
26
keyFollowPaths = "followpaths"
@@ -36,9 +35,8 @@ type fsSyncProvider struct {
36
35
}
37
36
38
37
type SyncedDir struct {
39
- Dir string
40
- Excludes []string
41
- Map func (string , * fstypes.Stat ) fsutil.MapResult
38
+ Dir string
39
+ Map func (string , * fstypes.Stat ) fsutil.MapResult
42
40
}
43
41
44
42
type DirSource interface {
@@ -99,9 +97,6 @@ func (sp *fsSyncProvider) handle(method string, stream grpc.ServerStream) (retEr
99
97
}
100
98
101
99
excludes := opts [keyExcludePatterns ]
102
- if len (dir .Excludes ) != 0 && (len (opts [keyOverrideExcludes ]) == 0 || opts [keyOverrideExcludes ][0 ] != "true" ) {
103
- excludes = dir .Excludes
104
- }
105
100
includes := opts [keyIncludePatterns ]
106
101
107
102
followPaths := opts [keyFollowPaths ]
@@ -155,16 +150,15 @@ var supportedProtocols = []protocol{
155
150
156
151
// FSSendRequestOpt defines options for FSSend request
157
152
type FSSendRequestOpt struct {
158
- Name string
159
- IncludePatterns []string
160
- ExcludePatterns []string
161
- FollowPaths []string
162
- OverrideExcludes bool // deprecated: this is used by docker/cli for automatically loading .dockerignore from the directory
163
- DestDir string
164
- CacheUpdater CacheUpdater
165
- ProgressCb func (int , bool )
166
- Filter func (string , * fstypes.Stat ) bool
167
- Differ fsutil.DiffType
153
+ Name string
154
+ IncludePatterns []string
155
+ ExcludePatterns []string
156
+ FollowPaths []string
157
+ DestDir string
158
+ CacheUpdater CacheUpdater
159
+ ProgressCb func (int , bool )
160
+ Filter func (string , * fstypes.Stat ) bool
161
+ Differ fsutil.DiffType
168
162
}
169
163
170
164
// CacheUpdater is an object capable of sending notifications for the cache hash changes
@@ -188,9 +182,6 @@ func FSSync(ctx context.Context, c session.Caller, opt FSSendRequestOpt) error {
188
182
}
189
183
190
184
opts := make (map [string ][]string )
191
- if opt .OverrideExcludes {
192
- opts [keyOverrideExcludes ] = []string {"true" }
193
- }
194
185
195
186
if opt .IncludePatterns != nil {
196
187
opts [keyIncludePatterns ] = opt .IncludePatterns
0 commit comments