Merge pull request #5906 from thaJeztah/replace_os_exec

This commit is contained in:
Fu Wei
2021-09-11 10:38:53 +08:00
committed by GitHub
41 changed files with 166 additions and 66 deletions

View File

@@ -24,12 +24,12 @@ import (
"fmt"
"io"
"os"
"os/exec"
"strconv"
"sync"
"github.com/containerd/containerd/log"
"github.com/klauspost/compress/zstd"
exec "golang.org/x/sys/execabs"
)
type (

View File

@@ -24,11 +24,12 @@ import (
"io/ioutil"
"math/rand"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
exec "golang.org/x/sys/execabs"
)
func TestMain(m *testing.M) {

View File

@@ -27,7 +27,6 @@ import (
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"testing"
"time"
@@ -39,6 +38,7 @@ import (
"github.com/containerd/continuity/fs"
"github.com/containerd/continuity/fs/fstest"
"github.com/pkg/errors"
exec "golang.org/x/sys/execabs"
)
const tarCmd = "tar"