all: update golang.org/x/tools dependency to support Go v1.22.0 (#401)

This commit is contained in:
Todd Treece
2024-02-07 12:25:46 -05:00
committed by GitHub
parent 0675cdc919
commit e57deea2f8
9 changed files with 73 additions and 49 deletions

View File

@@ -2,6 +2,4 @@ github.com/google/subcommands
github.com/google/wire
github.com/pmezard/go-difflib
golang.org/x/mod
golang.org/x/sys
golang.org/x/tools
golang.org/x/xerrors

View File

@@ -1173,9 +1173,9 @@ func (pt ProvidedType) IsNil() bool {
//
// - For a function provider, this is the first return value type.
// - For a struct provider, this is either the struct type or the pointer type
// whose element type is the struct type.
// - For a value, this is the type of the expression.
// - For an argument, this is the type of the argument.
// whose element type is the struct type.
// - For a value, this is the type of the expression.
// - For an argument, this is the type of the argument.
func (pt ProvidedType) Type() types.Type {
return pt.t
}

View File

@@ -1 +1,3 @@
example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind
example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind
have (*Fooer)
want (interface{}, interface{})

View File

@@ -1 +1,3 @@
example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue
example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue
have (string)
want (interface{}, interface{})

View File

@@ -463,7 +463,6 @@ type testCase struct {
// program_out.txt
// expected output from the final compiled program,
// missing if wire_errs.txt is present
//
func loadTestCase(root string, wireGoSrc []byte) (*testCase, error) {
name := filepath.Base(root)
pkg, err := ioutil.ReadFile(filepath.Join(root, "pkg"))