File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ import (
58
58
"github.com/moby/buildkit/util/tracing/transform"
59
59
"github.com/moby/buildkit/version"
60
60
"github.com/moby/buildkit/worker"
61
- "github.com/moby/sys/reexec"
62
61
"github.com/moby/sys/userns"
63
62
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
64
63
"github.com/pkg/errors"
@@ -81,10 +80,6 @@ func init() {
81
80
apicaps .ExportedProduct = "buildkit"
82
81
stack .SetVersionInfo (version .Version , version .Revision )
83
82
84
- if reexec .Init () {
85
- os .Exit (0 )
86
- }
87
-
88
83
// enable in memory recording for buildkitd traces
89
84
detect .Recorder = detect .NewTraceRecorder ()
90
85
}
Original file line number Diff line number Diff line change
1
+ //go:build !linux
2
+
3
+ package main
4
+
5
+ import (
6
+ "os"
7
+
8
+ "github.com/moby/sys/reexec"
9
+ )
10
+
11
+ func init () {
12
+ if reexec .Init () {
13
+ os .Exit (0 )
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments