Skip to content

Commit 872af82

Browse files
committed
remove remaining uses of golang.org/x/sys/execabs
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 2ad2a2e commit 872af82

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

cmd/containerd-shim/main_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"io"
2828
"net"
2929
"os"
30+
"os/exec"
3031
"os/signal"
3132
"runtime"
3233
"runtime/debug"
@@ -48,7 +49,6 @@ import (
4849
"github.com/containerd/containerd/version"
4950
"github.com/containerd/ttrpc"
5051
"github.com/sirupsen/logrus"
51-
exec "golang.org/x/sys/execabs"
5252
"golang.org/x/sys/unix"
5353
)
5454

runtime/v1/shim/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"io"
2626
"net"
2727
"os"
28+
"os/exec"
2829
"path/filepath"
2930
"strconv"
3031
"strings"
@@ -40,7 +41,6 @@ import (
4041
shimapi "github.com/containerd/containerd/runtime/v1/shim/v1"
4142
"github.com/containerd/containerd/sys"
4243
"github.com/containerd/ttrpc"
43-
exec "golang.org/x/sys/execabs"
4444
"golang.org/x/sys/unix"
4545
)
4646

runtime/v1/shim/client/client_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ package client
1818

1919
import (
2020
"fmt"
21+
"os/exec"
2122
"syscall"
2223

2324
"github.com/containerd/cgroups/v3/cgroup1"
24-
exec "golang.org/x/sys/execabs"
2525
)
2626

2727
func getSysProcAttr() *syscall.SysProcAttr {

runtime/v1/shim/client/client_unix.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
package client
2020

2121
import (
22+
"os/exec"
2223
"syscall"
23-
24-
exec "golang.org/x/sys/execabs"
2524
)
2625

2726
func getSysProcAttr() *syscall.SysProcAttr {

runtime/v2/runc/v1/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"fmt"
2424
"io"
2525
"os"
26+
"os/exec"
2627
"path/filepath"
2728
goruntime "runtime"
2829
"sync"
@@ -51,7 +52,6 @@ import (
5152
runcC "github.com/containerd/go-runc"
5253
"github.com/containerd/typeurl/v2"
5354
"github.com/sirupsen/logrus"
54-
exec "golang.org/x/sys/execabs"
5555
"golang.org/x/sys/unix"
5656
)
5757

0 commit comments

Comments
 (0)