Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -18,7 +18,7 @@ import (
"golang.org/x/tools/go/ssa/ssautil"
)
// Callees reports the possible callees of the function call site
// The callees function reports the possible callees of the function call site
// identified by the specified source location.
func callees(q *Query) error {
lconf := loader.Config{Build: q.Build}

View File

@@ -16,7 +16,7 @@ import (
"golang.org/x/tools/go/ssa/ssautil"
)
// Callers reports the possible callers of the function
// The callers function reports the possible callers of the function
// immediately enclosing the specified source location.
//
func callers(q *Query) error {

View File

@@ -16,7 +16,7 @@ import (
"golang.org/x/tools/go/ssa/ssautil"
)
// Callstack displays an arbitrary path from a root of the callgraph
// The callstack function displays an arbitrary path from a root of the callgraph
// to the function at the current position.
//
// The information may be misleading in a context-insensitive

View File

@@ -8,7 +8,7 @@ import (
"bytes"
"fmt"
"go/ast"
exact "go/constant"
"go/constant"
"go/token"
"go/types"
"os"
@@ -349,10 +349,10 @@ func describeValue(qpos *queryPos, path []ast.Node) (*describeValueResult, error
type describeValueResult struct {
qpos *queryPos
expr ast.Expr // query node
typ types.Type // type of expression
constVal exact.Value // value of expression, if constant
obj types.Object // var/func/const object, if expr was Ident
expr ast.Expr // query node
typ types.Type // type of expression
constVal constant.Value // value of expression, if constant
obj types.Object // var/func/const object, if expr was Ident
methods []*types.Selection
fields []describeField
}

View File

@@ -35,6 +35,7 @@ import (
"go/token"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
@@ -49,6 +50,18 @@ import (
guru "golang.org/x/tools/cmd/guru"
)
func init() {
// This test currently requires GOPATH mode.
// Explicitly disabling module mode should suffix, but
// we'll also turn off GOPROXY just for good measure.
if err := os.Setenv("GO111MODULE", "off"); err != nil {
log.Fatal(err)
}
if err := os.Setenv("GOPROXY", "off"); err != nil {
log.Fatal(err)
}
}
var updateFlag = flag.Bool("update", false, "Update the golden files.")
type query struct {
@@ -268,11 +281,6 @@ func TestGuru(t *testing.T) {
// tests once we drop support for go1.8.
t.Skip()
}
if filename == "testdata/src/referrers/main.go" && !contains(build.Default.ReleaseTags, "go1.11") {
// Disabling broken test on Go 1.9 and Go 1.10. https://golang.org/issue/24421
// TODO(gri,adonovan): fix this test.
t.Skip()
}
json := strings.Contains(filename, "-json/")
queries := parseQueries(t, filename)

View File

@@ -19,7 +19,7 @@ import (
"golang.org/x/tools/refactor/importgraph"
)
// Implements displays the "implements" relation as it pertains to the
// The implements function displays the "implements" relation as it pertains to the
// selected type.
// If the selection is a method, 'implements' displays
// the corresponding methods of the types that would have been reported

View File

@@ -27,7 +27,7 @@ import (
"golang.org/x/tools/refactor/importgraph"
)
// Referrers reports all identifiers that resolve to the same object
// The referrers function reports all identifiers that resolve to the same object
// as the queried identifier, within any package in the workspace.
func referrers(q *Query) error {
fset := token.NewFileSet()

View File

@@ -60,5 +60,5 @@ references to var notexported int
-------- @referrers ref-type-U --------
references to type U int
open nosuchfile.y: no such file or directory (+ 1 more refs in this file)
open testdata/src/referrers/nosuchfile.y: no such file or directory (+ 1 more refs in this file)