@@ -204,7 +204,6 @@ type Stat struct {
|
||||
}
|
||||
|
||||
func parseStat(data string) (stat Stat, err error) {
|
||||
//nolint:dupword
|
||||
// From proc(5), field 2 could contain space and is inside `(` and `)`.
|
||||
// The following is an example:
|
||||
// 89653 (gunicorn: maste) S 89630 89653 89653 0 -1 4194560 29689 28896 0 3 146 32 76 19 20 0 1 0 2971844 52965376 3920 18446744073709551615 1 1 0 0 0 0 0 16781312 137447943 0 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||
|
||||
@@ -23,12 +23,13 @@ import (
|
||||
|
||||
"github.com/containerd/containerd/cmd/containerd/command"
|
||||
"github.com/containerd/containerd/pkg/hasher"
|
||||
"github.com/containerd/containerd/pkg/seed"
|
||||
"github.com/containerd/containerd/pkg/seed" //nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
|
||||
|
||||
_ "github.com/containerd/containerd/cmd/containerd/builtins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
//nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
|
||||
seed.WithTimeAndRand()
|
||||
crypto.RegisterHash(crypto.SHA256, hasher.NewSHA256)
|
||||
}
|
||||
|
||||
@@ -23,13 +23,14 @@ import (
|
||||
|
||||
"github.com/containerd/containerd/cmd/ctr/app"
|
||||
"github.com/containerd/containerd/pkg/hasher"
|
||||
"github.com/containerd/containerd/pkg/seed"
|
||||
"github.com/containerd/containerd/pkg/seed" //nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var pluginCmds = []cli.Command{}
|
||||
|
||||
func init() {
|
||||
//nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
|
||||
seed.WithTimeAndRand()
|
||||
crypto.RegisterHash(crypto.SHA256, hasher.NewSHA256)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user