Skip to content

Commit ff1039a

Browse files
committed
utils: use GetRuntimeDir() from c/storage
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 36d2e30 commit ff1039a

File tree

4 files changed

+3
-108
lines changed

4 files changed

+3
-108
lines changed

pkg/config/default.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
nettypes "github.com/containers/common/libnetwork/types"
1414
"github.com/containers/common/pkg/apparmor"
1515
"github.com/containers/common/pkg/cgroupv2"
16-
"github.com/containers/common/pkg/util"
1716
"github.com/containers/storage/pkg/homedir"
1817
"github.com/containers/storage/pkg/unshare"
1918
"github.com/containers/storage/types"
@@ -489,7 +488,7 @@ func defaultTmpDir() (string, error) {
489488
return getLibpodTmpDir(), nil
490489
}
491490

492-
runtimeDir, err := util.GetRuntimeDir()
491+
runtimeDir, err := homedir.GetRuntimeDir()
493492
if err != nil {
494493
return "", err
495494
}

pkg/netns/netns_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"sync"
3131

3232
"github.com/containernetworking/plugins/pkg/ns"
33-
"github.com/containers/common/pkg/util"
33+
"github.com/containers/storage/pkg/homedir"
3434
"github.com/containers/storage/pkg/unshare"
3535
"github.com/sirupsen/logrus"
3636
"golang.org/x/sys/unix"
@@ -40,7 +40,7 @@ import (
4040
// rootless, it needs to be at a location writable by user.
4141
func GetNSRunDir() (string, error) {
4242
if unshare.IsRootless() {
43-
rootlessDir, err := util.GetRuntimeDir()
43+
rootlessDir, err := homedir.GetRuntimeDir()
4444
if err != nil {
4545
return "", err
4646
}

pkg/util/util_supported.go

Lines changed: 0 additions & 91 deletions
This file was deleted.

pkg/util/util_windows.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)