Skip to content
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

util/system: deprecate Atime implementation for containerd/continuity/fs #5465

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Oct 29, 2024

vendor: github.com/containerd/continuity v0.4.5

full diff: containerd/continuity@v0.4.4...v0.4.5

util/system: deprecate 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 deprecate the implementation here.

@thaJeztah
Copy link
Member Author

Ah, dang; probably continuity uses _linux.go instead of _unix.go ?

27.21 # github.com/moby/buildkit/util/system
27.21 util/system/atime_deprecated.go:12:12: undefined: fs.Atime
35.19 # github.com/moby/buildkit/executor
35.19 executor/stubs.go:89:21: undefined: fs.Atime

@thaJeztah
Copy link
Member Author

Ah, it uses specific build-tags, has openbsd but not freebsd

//go:build linux || openbsd || dragonfly || solaris

@thaJeztah thaJeztah self-assigned this Oct 30, 2024
@thaJeztah thaJeztah marked this pull request as draft October 31, 2024 13:21
@github-actions github-actions bot added the area/dependencies Pull requests that update a dependency file label Oct 31, 2024
@thompson-shaun thompson-shaun added this to the v0.18.0 milestone Oct 31, 2024
@thaJeztah thaJeztah force-pushed the switch_continuity branch 2 times, most recently from 10fccbd to 195cef1 Compare November 14, 2024 21:33
@thaJeztah thaJeztah marked this pull request as ready for review November 14, 2024 21:34
@thaJeztah
Copy link
Member Author

continuity v0.4.5 was tagged which now has all the changed needed; @AkihiroSuda @tonistiigi PTAL

"github.com/containerd/continuity/fs"
)

// Deprecated: use [fs.Atime] instead.
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this. We don't have any go backwards compatibility guarantees.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed, although I think "we don't guarantee" and "we force breaking changes with every release" are .. slightly distinct things.

full diff: containerd/continuity@v0.4.4...v0.4.5

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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 <github@gone.nl>
@AkihiroSuda AkihiroSuda merged commit f0201ef into moby:master Nov 19, 2024
94 checks passed
@thaJeztah thaJeztah deleted the switch_continuity branch November 19, 2024 22:26
@thompson-shaun thompson-shaun removed this from the v0.18.0 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/executor area/util area/windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants