-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow none differ on local source to avoid false Dockerfile matches #2081
Conversation
dab2657
to
a552209
Compare
@tonistiigi needs a rebase |
@AkihiroSuda @crazy-max ptal |
(also would this one be ok to backport?) |
a552209
to
31b38d1
Compare
31b38d1
to
f9e9be0
Compare
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
f9e9be0
to
be61d26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, would generally prefer comments to describe intent of code as we expand the functionality.
This avoids wrong metadata matches on small files Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
be61d26
to
ee39f5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the update
👆 any ideas on that? How risky is this change to backport? (too risky?) |
fixes #1368
Allows new
llb.Differ
property to configure what algorithm should be used when transferring file changes. Dockerfile frontend is updated to not trust metadata comparison for Dockerfile/dockerignore transfer. This can be extended in the future with some content-based comparison for better precision.