Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated seed calls #5028

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove deprecated seed calls
Not needed since go1.20

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Jun 12, 2024
commit c241bcaad080cb90b1271deaa1abdd89e8946cdd
3 changes: 0 additions & 3 deletions cmd/buildkitd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"sync"

"github.com/containerd/containerd/defaults"
"github.com/containerd/containerd/pkg/seed" //nolint:staticcheck // SA1019 deprecated
"github.com/containerd/containerd/pkg/userns"
"github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/remotes/docker"
Expand Down Expand Up @@ -81,8 +80,6 @@ func init() {
apicaps.ExportedProduct = "buildkit"
stack.SetVersionInfo(version.Version, version.Revision)

//nolint:staticcheck // SA1019 deprecated
seed.WithTimeAndRand()
if reexec.Init() {
os.Exit(0)
}
Expand Down
1 change: 0 additions & 1 deletion solver/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
)

func init() {
rand.Seed(time.Now().UnixNano()) //nolint:staticcheck // Ignore SA1019. No way to get the automatically generated seed since Go 1.20.
if debugScheduler {
logrus.SetOutput(os.Stdout)
logrus.SetLevel(logrus.DebugLevel)
Expand Down
43 changes: 0 additions & 43 deletions vendor/github.com/containerd/containerd/pkg/seed/seed.go

This file was deleted.

24 changes: 0 additions & 24 deletions vendor/github.com/containerd/containerd/pkg/seed/seed_linux.go

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/github.com/containerd/containerd/pkg/seed/seed_other.go

This file was deleted.

1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ github.com/containerd/containerd/pkg/kmutex
github.com/containerd/containerd/pkg/randutil
github.com/containerd/containerd/pkg/runtimeoptions/v1
github.com/containerd/containerd/pkg/seccomp
github.com/containerd/containerd/pkg/seed
github.com/containerd/containerd/pkg/snapshotters
github.com/containerd/containerd/pkg/streaming
github.com/containerd/containerd/pkg/transfer
Expand Down
Loading