-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix .dockerignore to avoid dirty working tree #3349
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
Conversation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #3349 +/- ##
=======================================
Coverage 58.01% 58.01%
=======================================
Files 302 302
Lines 21762 21762
=======================================
Hits 12625 12625
Misses 8215 8215
Partials 922 922 |
|
Can we somehow make the builds work without having to copy the |
tonistiigi
left a comment
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.
Did you verify that the changes were only from ignored files? I have a vague memory that it was always the case because of generated code but maybe that has been already fixed. I think in releases we ignore it because of VERSION override.
Can we somehow make the builds work without having to copy the .git directory? It feels like this is hiding the actual issue (i.e., the build now needs the git repository, but effectively just to generate a version)
I don't see any issue with that. It is working correctly by letting us know that there was an issue with validating the source.
Yes changes are from the ignored files only: Generated code is already taken into account and has also been fixed for Also not relevant to this PR, but was going to add docker buildx bake --set binary.platform=darwin/amd64 "git://github.com/docker/cli#v20.10.10"
I think validating the working tree is important as part of the build so we make sure we don't miss something. |
Including |
Workaround for docker/cli#3349 Leaving in the commented-out code to reinstate once this docker bug is fixed. Signed-off-by: Eric Promislow <epromislow@suse.com>
|
@thaJeztah If you want to get a cache match for the |
thaJeztah
left a comment
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.
let's get this one in, as it's not changing things w.r.t. what we already do (but possibly we should discuss some)
LGTM
Fixes #3347
Closes #3348
cc @thaJeztah @tonistiigi