runtime: Remove replace directives in go.mod

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 <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo 2025-03-13 15:59:25 +00:00
parent 7968a3c09d
commit c3a9c70d45

View File

@ -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