builder: fix build cache hash for broken symlink#34271
Conversation
|
This broke unit tests that checked for a hash of a missing file. It is possible to determine between a broken followed symlink and missing file but there is no utility function for that atm. I didn't find anything that actually relies on the not-found error being produced so I updated the tests. When this logic gets updated we should make sure the error case is put back. |
|
Looks like windows failure is related? |
|
ping @tonistiigi ^ |
|
ping @tonistiigi should someone carry this? /cc @johnstep @salah-khan |
Signed-off-by: Tonis Tiigi <[email protected]>
8907799 to
a77f078
Compare
|
Fixed the unit test. CI still red but this time I don't think it is related. |
|
Windows failure is now; Which was marked racey; #33301 I'll trigger CI once more for good measures |
|
ok looks like the windows failure is racey |
|
ping @AkihiroSuda could you have a look at this one? |
There was a problem hiding this comment.
if err != nil { return nil } looks as if it were a typo. Please add a comment so that readers won't get confused?
|
ping @tonistiigi LGTM after adding the comment |
Signed-off-by: Tonis Tiigi <[email protected]>
a77f078 to
d5b15f0
Compare
|
ping @justincormack PTAL |
fixes #34260
This makes build cache hash for broken symlink in a directory to match the path of resolved path like it appears in the original tarsum version
moby/builder/remotecontext/archive.go
Lines 113 to 115 in 8c72417
ADD/COPYsemantics.@justincormack @dnephin
Signed-off-by: Tonis Tiigi [email protected]