From c3a9c70d454ccb16a46083fcdf946ec5b70205a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Thu, 13 Mar 2025 15:59:25 +0000 Subject: [PATCH] runtime: Remove `replace` directives in go.mod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These replace directives aren't understood by dependabot, hence dependabot can claim to upgrade a dependency, while a replace directive still makes the dependency point to an old version. Fixes: #11020 Signed-off-by: Aurélien Bombo --- src/runtime/go.mod | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/runtime/go.mod b/src/runtime/go.mod index ff02a9a5fd..c2e2b362b9 100644 --- a/src/runtime/go.mod +++ b/src/runtime/go.mod @@ -2,6 +2,9 @@ module github.com/kata-containers/kata-containers/src/runtime go 1.21 +// WARNING: Do NOT use `replace` directives as those break dependabot: +// https://github.com/kata-containers/kata-containers/issues/11020 + require ( code.cloudfoundry.org/bytefmt v0.0.0-20211005130812-5bb3c17173e5 github.com/BurntSushi/toml v1.3.2 @@ -132,11 +135,5 @@ require ( tags.cncf.io/container-device-interface/specs-go v0.7.0 // indirect ) -replace ( - github.com/go-openapi/swag => github.com/go-openapi/swag v0.21.1 - github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.9 - github.com/stretchr/testify => github.com/stretchr/testify v1.8.0 - github.com/uber-go/atomic => go.uber.org/atomic v1.5.1 - golang.org/x/text => golang.org/x/text v0.7.0 - gopkg.in/yaml.v3 => gopkg.in/yaml.v3 v3.0.1 -) +// WARNING: Do NOT use `replace` directives as those break dependabot: +// https://github.com/kata-containers/kata-containers/issues/11020