Skip to content

Commit c8f9cd7

Browse files
committed
util/system: remove Atime implementation for containerd/continuity/fs
These were added in 0b5a315, because the continuity/fs package did not provide a Windows implementation. They were upstreamed in [continuity@3cbda8c], which is part of continuity v0.4.4, so we can remove the implementation here. [continuity@3cbda8c]: https://github.com/containerd/continuity//commit/3cbda8c24bde1ce635ff5dc3417a481a3b6b6e07 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 741478d commit c8f9cd7

File tree

3 files changed

+1
-41
lines changed

3 files changed

+1
-41
lines changed

executor/stubs.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
"github.com/containerd/continuity/fs"
1212
"github.com/moby/buildkit/util/bklog"
13-
"github.com/moby/buildkit/util/system"
1413
)
1514

1615
func MountStubsCleaner(ctx context.Context, dir string, mounts []Mount, recursive bool) func() {
@@ -87,7 +86,7 @@ func MountStubsCleaner(ctx context.Context, dir string, mounts []Mount, recursiv
8786
continue
8887
}
8988
mtime := dirSt.ModTime()
90-
atime, err := system.Atime(dirSt)
89+
atime, err := fs.Atime(dirSt)
9190
if err != nil {
9291
bklog.G(ctx).WithError(err).Warnf("Failed to stat atime of %q (parent of mount stub %q)", dir, p)
9392
atime = mtime

util/system/atime_unix.go

-21
This file was deleted.

util/system/atime_windows.go

-18
This file was deleted.

0 commit comments

Comments
 (0)