tests: Remove replace directives in go.mod

Same rationale as for runtime. With tests, the blackfriday replacement was
actually meaningful, so I refactored some imports.

Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo 2025-03-14 17:41:31 +00:00
parent 35c92aa6ad
commit e9f88757ba
7 changed files with 12 additions and 8 deletions

View File

@ -9,7 +9,7 @@ package main
import (
"fmt"
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// linkDescription extracts the description from the specified link node.

View File

@ -9,7 +9,7 @@ package main
import (
"strings"
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// forceCreateHeadings extracts "missed" headings from the specified node,

View File

@ -7,7 +7,7 @@
package main
import (
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// handleNode processes the specified node.

View File

@ -11,7 +11,7 @@ import (
"os"
"strings"
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// List of errors found by visitor. Used as the visitor cannot return an error

View File

@ -10,7 +10,7 @@ import (
"fmt"
"strings"
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// displayTOC displays a table of contents entry for the specified node.

View File

@ -13,7 +13,7 @@ import (
"strings"
"unicode"
bf "gopkg.in/russross/blackfriday.v2"
bf "github.com/russross/blackfriday/v2"
)
// fileExists returns true if the specified file exists, else false.

View File

@ -2,12 +2,15 @@ module github.com/kata-containers/tests
go 1.19
// WARNING: Do NOT use `replace` directives as those break dependabot:
// https://github.com/kata-containers/kata-containers/issues/11020
require (
github.com/olekukonko/tablewriter v0.0.6-0.20210304033056-74c60be0ef68
github.com/russross/blackfriday/v2 v2.1.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.1
github.com/urfave/cli v1.22.0
gopkg.in/russross/blackfriday.v2 v2.0.0-00010101000000-000000000000
gopkg.in/yaml.v2 v2.4.0
)
@ -22,4 +25,5 @@ require (
gopkg.in/yaml.v3 v3.0.0 // indirect
)
replace gopkg.in/russross/blackfriday.v2 => github.com/russross/blackfriday/v2 v2.1.0
// WARNING: Do NOT use `replace` directives as those break dependabot:
// https://github.com/kata-containers/kata-containers/issues/11020