Skip to content

Commit ee725f1

Browse files
authored
Merge pull request moby#5605 from thaJeztah/migrate_reexec
migrate to github.com/moby/sys/reexec
2 parents 8e3c836 + 698acd3 commit ee725f1

File tree

10 files changed

+324
-3
lines changed

10 files changed

+324
-3
lines changed

cmd/buildkitd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/containerd/containerd/sys"
2121
"github.com/containerd/platforms"
2222
sddaemon "github.com/coreos/go-systemd/v22/daemon"
23-
"github.com/docker/docker/pkg/reexec"
2423
"github.com/gofrs/flock"
2524
"github.com/hashicorp/go-multierror"
2625
"github.com/moby/buildkit/cache/remotecache"
@@ -60,6 +59,7 @@ import (
6059
"github.com/moby/buildkit/util/tracing/transform"
6160
"github.com/moby/buildkit/version"
6261
"github.com/moby/buildkit/worker"
62+
"github.com/moby/sys/reexec"
6363
"github.com/moby/sys/userns"
6464
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
6565
"github.com/pkg/errors"

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ require (
5050
github.com/moby/locker v1.0.1
5151
github.com/moby/patternmatcher v0.6.0
5252
github.com/moby/sys/mountinfo v0.7.2
53+
github.com/moby/sys/reexec v0.1.0
5354
github.com/moby/sys/signal v0.7.1
5455
github.com/moby/sys/user v0.3.0
5556
github.com/moby/sys/userns v0.1.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ github.com/moby/sys/mount v0.3.4/go.mod h1:KcQJMbQdJHPlq5lcYT+/CjatWM4PuxKe+XLSV
281281
github.com/moby/sys/mountinfo v0.6.2/go.mod h1:IJb6JQeOklcdMU9F5xQ8ZALD+CUr5VlGpwtX+VE0rpI=
282282
github.com/moby/sys/mountinfo v0.7.2 h1:1shs6aH5s4o5H2zQLn796ADW1wMrIwHsyJ2v9KouLrg=
283283
github.com/moby/sys/mountinfo v0.7.2/go.mod h1:1YOa8w8Ih7uW0wALDUgT1dTTSBrZ+HiBLGws92L2RU4=
284+
github.com/moby/sys/reexec v0.1.0 h1:RrBi8e0EBTLEgfruBOFcxtElzRGTEUkeIFaVXgU7wok=
285+
github.com/moby/sys/reexec v0.1.0/go.mod h1:EqjBg8F3X7iZe5pU6nRZnYCMUTXoxsjiIfHup5wYIN8=
284286
github.com/moby/sys/sequential v0.6.0 h1:qrx7XFUd/5DxtqcoH1h438hF5TmOvzC/lspjy7zgvCU=
285287
github.com/moby/sys/sequential v0.6.0/go.mod h1:uyv8EUTrca5PnDsdMGXhZe6CCe8U/UiTWd+lL+7b/Ko=
286288
github.com/moby/sys/signal v0.7.1 h1:PrQxdvxcGijdo6UXXo/lU/TvHUWyPhj7UOpSo8tuvk0=

source/git/source_unix_nolinux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"syscall"
1111
"time"
1212

13-
"github.com/docker/docker/pkg/reexec"
13+
"github.com/moby/sys/reexec"
1414
"golang.org/x/sys/unix"
1515
)
1616

util/system/getuserinfo/userinfo_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"golang.org/x/sys/windows"
99

1010
"github.com/docker/docker/pkg/idtools"
11-
"github.com/docker/docker/pkg/reexec"
11+
"github.com/moby/sys/reexec"
1212
)
1313

1414
const (

vendor/github.com/moby/sys/reexec/LICENSE

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/sys/reexec/reexec.go

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/sys/reexec/reexec_linux.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/sys/reexec/reexec_other.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ github.com/moby/sys/mount
638638
# github.com/moby/sys/mountinfo v0.7.2
639639
## explicit; go 1.17
640640
github.com/moby/sys/mountinfo
641+
# github.com/moby/sys/reexec v0.1.0
642+
## explicit; go 1.18
643+
github.com/moby/sys/reexec
641644
# github.com/moby/sys/sequential v0.6.0
642645
## explicit; go 1.17
643646
github.com/moby/sys/sequential

0 commit comments

Comments
 (0)