-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Resolve input files more comprehensively on jibBuildTar #1754
Conversation
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.
Why do we treat BuildDockerTask and BuildImageTask differently: why no @Input
nor @Output
? Because they don't have a formal output?
@@ -80,11 +80,7 @@ public void setTargetImage(String targetImage) { | |||
public FileCollection getInputFiles() { |
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.
The javadoc makes it sound like only the classes dependencies matter, and there's no mention of the extras.
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.
fixed.
* @param project the gradle project | ||
* @param extraDirectories the image's configured extra directories | ||
* @return the input files to the task are all the output files for all the dependencies of the | ||
* {@code classes} task |
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.
No mention of the extras?
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.
fixed.
Yes in gradle, unless you have an |
Isn't it basically that we should always push an image to a Docker daemon regardless of whether there is a change to input? Because often you do |
This is a good point, I didn't think of it. |
Will this fix #1757? |
@TadCordle It should fix it. |
Fixes #1757.
Bug: #1745 (comment)
We haven't been including the all the input to the task correct (this only matter with jibBuildTar which has an
@Output
defined - all other jib tasks run always).Also we had some weird code (BuildTarTask:83) that is cleaned up here.