Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tonistiigi
Copy link
Member

fixes moby/buildkit#1153

Currently differ rounds timestamps, causing issues and incompatibility with previous differ when timestamps are rounded up.

In the future, the best solution should be to always force PAX headers and add nanoseconds into the tar but wanted to just fix the issue with this PR without introducing new changes.

AccessTime/ChangeTime are also cleared to match the docker differ.

Signed-off-by: Tonis Tiigi [email protected]

@codecov-io
Copy link

codecov-io commented Aug 28, 2019

Codecov Report

Merging #3589 into master will increase coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3589      +/-   ##
==========================================
+ Coverage   42.26%   42.27%   +0.01%     
==========================================
  Files         126      126              
  Lines       13881    13887       +6     
==========================================
+ Hits         5867     5871       +4     
- Misses       7128     7130       +2     
  Partials      886      886
Flag Coverage Δ
#linux 45.77% <100%> (+0.01%) ⬆️
#windows 37.21% <0%> (-0.02%) ⬇️
Impacted Files Coverage Δ
archive/tar.go 48.18% <66.66%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3096178...372472b. Read the comment docs.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Aug 28, 2019

Build succeeded.

@crosbymichael crosbymichael requested a review from dmcgowan August 28, 2019 18:27
Copy link
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

We can probably add some options here in the future to make it more configurable to support nanosecond inclusion.

@dmcgowan dmcgowan added this to the 1.3 milestone Aug 28, 2019
@crosbymichael
Copy link
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

timestamp in image layers rounding differences
5 participants