replace sys Sequential funcs with moby/sys/sequential

These functions were originally copied from the docker / moby repository in
4a7a8efc2d. Migrating these functions to use the
github.com/moby/sys/sequential module allows them being shared between moby,
docker/cli, and containerd, and to allow using them without importing all of sys
which also depends on hcsshim and more.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-08-27 14:25:07 +02:00
parent bf8cdc2918
commit 93342d637c
12 changed files with 490 additions and 110 deletions

1
go.mod
View File

@@ -39,6 +39,7 @@ require (
github.com/klauspost/compress v1.15.9
github.com/moby/locker v1.0.1
github.com/moby/sys/mountinfo v0.6.2
github.com/moby/sys/sequential v0.0.0-20220829095930-b22ba8a69b30
github.com/moby/sys/signal v0.7.0
github.com/moby/sys/symlink v0.2.0
github.com/opencontainers/go-digest v1.0.0