-
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
Allow setting file timestamps from plugins #1818
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Restored the changes to |
jib-core/src/main/java/com/google/cloud/tools/jib/api/LayerConfiguration.java
Outdated
Show resolved
Hide resolved
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.
Mostly looks good, just some small changes and observations.
jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java
Outdated
Show resolved
Hide resolved
@@ -135,7 +135,8 @@ private static void assertExtraDirectoryDeprecationWarning(String pomXml) | |||
BuildResult buildResult = | |||
JibRunHelper.buildToDockerDaemon(simpleTestProject, targetImage, pomXml); | |||
Assert.assertEquals( | |||
"Hello, world. \nrw-r--r--\nrw-r--r--\nfoo\ncat\n", | |||
"Hello, world. \n1970-01-01T00:00:01Z\nrw-r--r--\nrw-r--r--\nfoo\ncat\n" |
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 output for this test program is starting to get more and more complicated, I wonder if we should think about making it more readable (not this PR)
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.
I felt the same. It's growing duplicates unnecessarily.
Migrated from #1782. Contains commits from an external contributor, so CLA bot keeps complaining. Manaully marking CLA OK.
Fixes #1608.
I noticed the target file modification time should be factored in when determining if an application layer for the files were cached, so I modified
LayerEntriesSelector
accordingly.