Skip to content

Commit

Permalink
remove remaining uses of golang.org/x/sys/execabs
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jan 5, 2024
1 parent 5eebd48 commit 508c8bd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/containerd-shim/main_unix.go
Expand Up @@ -27,6 +27,7 @@ import (
"io"
"net"
"os"
"os/exec"
"os/signal"
"runtime"
"runtime/debug"
Expand All @@ -48,7 +49,6 @@ import (
"github.com/containerd/containerd/version"
"github.com/containerd/ttrpc"
"github.com/sirupsen/logrus"
exec "golang.org/x/sys/execabs"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion runtime/v1/shim/client/client.go
Expand Up @@ -25,6 +25,7 @@ import (
"io"
"net"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
Expand All @@ -40,7 +41,6 @@ import (
shimapi "github.com/containerd/containerd/runtime/v1/shim/v1"
"github.com/containerd/containerd/sys"
"github.com/containerd/ttrpc"
exec "golang.org/x/sys/execabs"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion runtime/v1/shim/client/client_linux.go
Expand Up @@ -18,10 +18,10 @@ package client

import (
"fmt"
"os/exec"
"syscall"

"github.com/containerd/cgroups/v3/cgroup1"
exec "golang.org/x/sys/execabs"
)

func getSysProcAttr() *syscall.SysProcAttr {
Expand Down
3 changes: 1 addition & 2 deletions runtime/v1/shim/client/client_unix.go
Expand Up @@ -19,9 +19,8 @@
package client

import (
"os/exec"
"syscall"

exec "golang.org/x/sys/execabs"
)

func getSysProcAttr() *syscall.SysProcAttr {
Expand Down
2 changes: 1 addition & 1 deletion runtime/v2/runc/v1/service.go
Expand Up @@ -23,6 +23,7 @@ import (
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
goruntime "runtime"
"sync"
Expand Down Expand Up @@ -51,7 +52,6 @@ import (
runcC "github.com/containerd/go-runc"
"github.com/containerd/typeurl/v2"
"github.com/sirupsen/logrus"
exec "golang.org/x/sys/execabs"
"golang.org/x/sys/unix"
)

Expand Down

0 comments on commit 508c8bd

Please sign in to comment.