mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
test/tools: vendor ginkgo v2.11
Ginkgo currently logs a warning because the cli version (defnied in test/tools/go.mod) does not match the library version (defnied in go.mod). Simply fix this by updating ginkgo to the latest version. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -4,7 +4,7 @@ go 1.18
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.2
|
github.com/cpuguy83/go-md2man/v2 v2.0.2
|
||||||
github.com/onsi/ginkgo/v2 v2.9.6
|
github.com/onsi/ginkgo/v2 v2.11.0
|
||||||
github.com/vbatts/git-validation v1.2.0
|
github.com/vbatts/git-validation v1.2.0
|
||||||
golang.org/x/tools v0.10.0
|
golang.org/x/tools v0.10.0
|
||||||
)
|
)
|
||||||
|
@ -17,9 +17,9 @@ github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04
|
|||||||
github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||||
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/onsi/ginkgo/v2 v2.9.6 h1:QPnYLUAuyyKYVInVqnaBV+4k+r6LZ27+iBGAOcqNPHE=
|
github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU=
|
||||||
github.com/onsi/ginkgo/v2 v2.9.6/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0=
|
github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM=
|
||||||
github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU=
|
github.com/onsi/gomega v1.27.8 h1:gegWiwZjBsf2DgiSbf5hpokZ98JVDMcWkUiigk6/KXc=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
||||||
|
5
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go
generated
vendored
5
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go
generated
vendored
@ -32,6 +32,9 @@ func BuildGenerateCommand() command.Command {
|
|||||||
{Name: "template-data", KeyPath: "CustomTemplateData",
|
{Name: "template-data", KeyPath: "CustomTemplateData",
|
||||||
UsageArgument: "template-data-file",
|
UsageArgument: "template-data-file",
|
||||||
Usage: "If specified, generate will use the contents of the file passed as data to be rendered in the test file template"},
|
Usage: "If specified, generate will use the contents of the file passed as data to be rendered in the test file template"},
|
||||||
|
{Name: "tags", KeyPath: "Tags",
|
||||||
|
UsageArgument: "build-tags",
|
||||||
|
Usage: "If specified, generate will create a test file that uses the given build tags (i.e. `--tags e2e,!unit` will add `//go:build e2e,!unit`)"},
|
||||||
},
|
},
|
||||||
&conf,
|
&conf,
|
||||||
types.GinkgoFlagSections{},
|
types.GinkgoFlagSections{},
|
||||||
@ -59,6 +62,7 @@ You can also pass a <filename> of the form "file.go" and generate will emit "fil
|
|||||||
}
|
}
|
||||||
|
|
||||||
type specData struct {
|
type specData struct {
|
||||||
|
BuildTags string
|
||||||
Package string
|
Package string
|
||||||
Subject string
|
Subject string
|
||||||
PackageImportPath string
|
PackageImportPath string
|
||||||
@ -93,6 +97,7 @@ func generateTestFileForSubject(subject string, conf GeneratorsConfig) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data := specData{
|
data := specData{
|
||||||
|
BuildTags: getBuildTags(conf.Tags),
|
||||||
Package: determinePackageName(packageName, conf.Internal),
|
Package: determinePackageName(packageName, conf.Internal),
|
||||||
Subject: formattedName,
|
Subject: formattedName,
|
||||||
PackageImportPath: getPackageImportPath(),
|
PackageImportPath: getPackageImportPath(),
|
||||||
|
6
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_templates.go
generated
vendored
6
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_templates.go
generated
vendored
@ -1,6 +1,7 @@
|
|||||||
package generators
|
package generators
|
||||||
|
|
||||||
var specText = `package {{.Package}}
|
var specText = `{{.BuildTags}}
|
||||||
|
package {{.Package}}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
{{.GinkgoImport}}
|
{{.GinkgoImport}}
|
||||||
@ -14,7 +15,8 @@ var _ = {{.GinkgoPackage}}Describe("{{.Subject}}", func() {
|
|||||||
})
|
})
|
||||||
`
|
`
|
||||||
|
|
||||||
var agoutiSpecText = `package {{.Package}}
|
var agoutiSpecText = `{{.BuildTags}}
|
||||||
|
package {{.Package}}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
{{.GinkgoImport}}
|
{{.GinkgoImport}}
|
||||||
|
12
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generators_common.go
generated
vendored
12
test/tools/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generators_common.go
generated
vendored
@ -1,6 +1,7 @@
|
|||||||
package generators
|
package generators
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"go/build"
|
"go/build"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -14,6 +15,7 @@ type GeneratorsConfig struct {
|
|||||||
Agouti, NoDot, Internal bool
|
Agouti, NoDot, Internal bool
|
||||||
CustomTemplate string
|
CustomTemplate string
|
||||||
CustomTemplateData string
|
CustomTemplateData string
|
||||||
|
Tags string
|
||||||
}
|
}
|
||||||
|
|
||||||
func getPackageAndFormattedName() (string, string, string) {
|
func getPackageAndFormattedName() (string, string, string) {
|
||||||
@ -62,3 +64,13 @@ func determinePackageName(name string, internal bool) string {
|
|||||||
|
|
||||||
return name + "_test"
|
return name + "_test"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getBuildTags returns the resultant string to be added.
|
||||||
|
// If the input string is not empty, then returns a `//go:build {}` string,
|
||||||
|
// otherwise returns an empty string.
|
||||||
|
func getBuildTags(tags string) string {
|
||||||
|
if tags != "" {
|
||||||
|
return fmt.Sprintf("//go:build %s\n", tags)
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
2
test/tools/vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
2
test/tools/vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
@ -1,3 +1,3 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
const VERSION = "2.9.6"
|
const VERSION = "2.11.0"
|
||||||
|
2
test/tools/vendor/modules.txt
vendored
2
test/tools/vendor/modules.txt
vendored
@ -11,7 +11,7 @@ github.com/google/pprof/profile
|
|||||||
# github.com/hashicorp/go-version v1.3.0
|
# github.com/hashicorp/go-version v1.3.0
|
||||||
## explicit
|
## explicit
|
||||||
github.com/hashicorp/go-version
|
github.com/hashicorp/go-version
|
||||||
# github.com/onsi/ginkgo/v2 v2.9.6
|
# github.com/onsi/ginkgo/v2 v2.11.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/onsi/ginkgo/v2/config
|
github.com/onsi/ginkgo/v2/config
|
||||||
github.com/onsi/ginkgo/v2/formatter
|
github.com/onsi/ginkgo/v2/formatter
|
||||||
|
Reference in New Issue
Block a user