Skip to content

Commit

Permalink
dockerfile: use none differ for dockerfile/dockerignore
Browse files Browse the repository at this point in the history
This avoids wrong metadata matches on small files

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Jun 12, 2021
1 parent a7b155e commit be61d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/dockerfile/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
llb.SessionID(c.BuildOpts().SessionID),
llb.SharedKeyHint(localNameDockerfile),
dockerfile2llb.WithInternalName(name),
llb.Differ(llb.DiffNone, false),
)

fileop := useFileOp(opts, &caps)
Expand Down Expand Up @@ -302,6 +303,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
llb.FollowPaths([]string{dockerignoreFilename}),
llb.SharedKeyHint(localNameContext+"-"+dockerignoreFilename),
dockerfile2llb.WithInternalName("load "+dockerignoreFilename),
llb.Differ(llb.DiffNone, false),
)
dockerignoreState = &st
}
Expand Down
1 change: 0 additions & 1 deletion session/filesync/filesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const (
keyFollowPaths = "followpaths"
keyDirName = "dir-name"
keyExporterMetaPrefix = "exporter-md-"
keyDiffer = "differ"
)

type fsSyncProvider struct {
Expand Down

0 comments on commit be61d26

Please sign in to comment.