From 2fa3c286b506fe8dd7c95477a92a37ddd715bb09 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 19 May 2020 23:38:20 +0900 Subject: [PATCH] fix "libcontainer/cgroups/fs/cpuset.go:63:14: undefined: fmt" The compilation error had ocurred because of a bad rebase during #2401 and #2413 Signed-off-by: Akihiro Suda --- libcontainer/cgroups/fs/cpuset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/cgroups/fs/cpuset.go b/libcontainer/cgroups/fs/cpuset.go index 101b9b1e..6a7725e3 100644 --- a/libcontainer/cgroups/fs/cpuset.go +++ b/libcontainer/cgroups/fs/cpuset.go @@ -4,7 +4,6 @@ package fs import ( "bytes" - "errors" "io/ioutil" "os" "path/filepath" @@ -14,6 +13,7 @@ import ( "github.com/opencontainers/runc/libcontainer/cgroups/fscommon" "github.com/opencontainers/runc/libcontainer/configs" libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils" + "github.com/pkg/errors" ) type CpusetGroup struct { @@ -60,7 +60,7 @@ func getMount(dir string) (string, error) { return "", err } if len(mi) < 1 { - return "", fmt.Errorf("Can't find mount point of %s", dir) + return "", errors.Errorf("Can't find mount point of %s", dir) } // find the longest mount point