diff --git a/contrib/rthooks/patch-containerd-conf.go b/contrib/rthooks/patch-containerd-conf.go index d742683bd70..a125afdb0d8 100644 --- a/contrib/rthooks/patch-containerd-conf.go +++ b/contrib/rthooks/patch-containerd-conf.go @@ -10,7 +10,7 @@ import ( "strings" srvconf "github.com/containerd/containerd/services/server/config" - "github.com/pelletier/go-toml" + "github.com/pelletier/go-toml/v2" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index c579ffcb6b1..4cadc1354b9 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/mennanov/fmutils v0.2.0 github.com/opencontainers/runc v1.1.9 github.com/opencontainers/runtime-spec v1.1.0 - github.com/pelletier/go-toml v1.9.5 + github.com/pelletier/go-toml/v2 v2.1.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.16.0 github.com/prometheus/client_model v0.4.0 @@ -137,7 +137,7 @@ require ( github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b // indirect github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect - github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect