mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.25.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
6
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
6
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
@@ -1,3 +1,9 @@
|
||||
## 2.25.1
|
||||
|
||||
### Fixes
|
||||
- fix(types): ignore nameless nodes on FullText() [10866d3]
|
||||
- chore: fix some CodeQL warnings [2e42cff]
|
||||
|
||||
## 2.25.0
|
||||
|
||||
### `AroundNode`
|
||||
|
||||
15
vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/dependencies.go
generated
vendored
15
vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/dependencies.go
generated
vendored
@@ -2,12 +2,9 @@ package watch
|
||||
|
||||
import (
|
||||
"go/build"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var ginkgoAndGomegaFilter = regexp.MustCompile(`github\.com/onsi/ginkgo|github\.com/onsi/gomega`)
|
||||
var ginkgoIntegrationTestFilter = regexp.MustCompile(`github\.com/onsi/ginkgo/integration`) //allow us to integration test this thing
|
||||
|
||||
type Dependencies struct {
|
||||
deps map[string]int
|
||||
}
|
||||
@@ -78,7 +75,7 @@ func (d Dependencies) resolveAndAdd(deps []string, depth int) {
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if !pkg.Goroot && (!ginkgoAndGomegaFilter.MatchString(pkg.Dir) || ginkgoIntegrationTestFilter.MatchString(pkg.Dir)) {
|
||||
if !pkg.Goroot && (!matchesGinkgoOrGomega(pkg.Dir) || matchesGinkgoIntegration(pkg.Dir)) {
|
||||
d.addDepIfNotPresent(pkg.Dir, depth)
|
||||
}
|
||||
}
|
||||
@@ -90,3 +87,11 @@ func (d Dependencies) addDepIfNotPresent(dep string, depth int) {
|
||||
d.deps[dep] = depth
|
||||
}
|
||||
}
|
||||
|
||||
func matchesGinkgoOrGomega(s string) bool {
|
||||
return strings.Contains(s, "github.com/onsi/ginkgo") || strings.Contains(s, "github.com/onsi/gomega")
|
||||
}
|
||||
|
||||
func matchesGinkgoIntegration(s string) bool {
|
||||
return strings.Contains(s, "github.com/onsi/ginkgo/integration") // allow us to integration test this thing
|
||||
}
|
||||
|
||||
2
vendor/github.com/onsi/ginkgo/v2/internal/progress_report.go
generated
vendored
2
vendor/github.com/onsi/ginkgo/v2/internal/progress_report.go
generated
vendored
@@ -236,7 +236,7 @@ func extractRunningGoroutines() ([]types.Goroutine, error) {
|
||||
}
|
||||
functionCall.Filename = line[:delimiterIdx]
|
||||
line = strings.Split(line[delimiterIdx+1:], " ")[0]
|
||||
lineNumber, err := strconv.ParseInt(line, 10, 64)
|
||||
lineNumber, err := strconv.ParseInt(line, 10, 32)
|
||||
functionCall.Line = int(lineNumber)
|
||||
if err != nil {
|
||||
return nil, types.GinkgoErrors.FailedToParseStackTrace(fmt.Sprintf("Invalid function call line number: %s\n%s", line, err.Error()))
|
||||
|
||||
4
vendor/github.com/onsi/ginkgo/v2/types/types.go
generated
vendored
4
vendor/github.com/onsi/ginkgo/v2/types/types.go
generated
vendored
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"slices"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -299,6 +300,9 @@ func (report SpecReport) FullText() string {
|
||||
if report.LeafNodeText != "" {
|
||||
texts = append(texts, report.LeafNodeText)
|
||||
}
|
||||
texts = slices.DeleteFunc(texts, func(t string) bool {
|
||||
return t == ""
|
||||
})
|
||||
return strings.Join(texts, " ")
|
||||
}
|
||||
|
||||
|
||||
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
@@ -1,3 +1,3 @@
|
||||
package types
|
||||
|
||||
const VERSION = "2.25.0"
|
||||
const VERSION = "2.25.1"
|
||||
|
||||
Reference in New Issue
Block a user