Swap typecheck to use go/types stdlib

parent c31d7f5b
...@@ -18,7 +18,6 @@ go_library( ...@@ -18,7 +18,6 @@ go_library(
importpath = "k8s.io/kubernetes/test/typecheck", importpath = "k8s.io/kubernetes/test/typecheck",
deps = [ deps = [
"//test/typecheck/srcimporter:go_default_library", "//test/typecheck/srcimporter:go_default_library",
"//third_party/forked/golang/go/types:go_default_library",
"//vendor/golang.org/x/crypto/ssh/terminal:go_default_library", "//vendor/golang.org/x/crypto/ssh/terminal:go_default_library",
], ],
) )
......
...@@ -24,6 +24,7 @@ import ( ...@@ -24,6 +24,7 @@ import (
"go/build" "go/build"
"go/parser" "go/parser"
"go/token" "go/token"
"go/types"
"io" "io"
"log" "log"
"os" "os"
...@@ -35,10 +36,8 @@ import ( ...@@ -35,10 +36,8 @@ import (
"time" "time"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
// TODO(rmmh): remove this when golang/go#23712 is fixed, and the
// fix is the current minimum Go version to build Kubernetes.
"k8s.io/kubernetes/test/typecheck/srcimporter" "k8s.io/kubernetes/test/typecheck/srcimporter"
"k8s.io/kubernetes/third_party/forked/golang/go/types"
) )
var ( var (
......
...@@ -5,7 +5,6 @@ go_library( ...@@ -5,7 +5,6 @@ go_library(
srcs = ["srcimporter.go"], srcs = ["srcimporter.go"],
importpath = "k8s.io/kubernetes/test/typecheck/srcimporter", importpath = "k8s.io/kubernetes/test/typecheck/srcimporter",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = ["//third_party/forked/golang/go/types:go_default_library"],
) )
filegroup( filegroup(
......
...@@ -30,10 +30,9 @@ import ( ...@@ -30,10 +30,9 @@ import (
"go/build" "go/build"
"go/parser" "go/parser"
"go/token" "go/token"
"go/types"
"path/filepath" "path/filepath"
"sync" "sync"
"k8s.io/kubernetes/third_party/forked/golang/go/types"
) )
// An Importer provides the context for importing packages from source code. // An Importer provides the context for importing packages from source code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment