Skip to content

Commit

Permalink
Swap typecheck to use go/types stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
cblecker committed Oct 25, 2018
1 parent c31d7f5 commit 328c3ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion test/typecheck/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ go_library(
importpath = "k8s.io/kubernetes/test/typecheck",
deps = [
"//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",
],
)
Expand Down
5 changes: 2 additions & 3 deletions test/typecheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"go/build"
"go/parser"
"go/token"
"go/types"
"io"
"log"
"os"
Expand All @@ -35,10 +36,8 @@ import (
"time"

"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/third_party/forked/golang/go/types"
)

var (
Expand Down
1 change: 0 additions & 1 deletion test/typecheck/srcimporter/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go_library(
srcs = ["srcimporter.go"],
importpath = "k8s.io/kubernetes/test/typecheck/srcimporter",
visibility = ["//visibility:public"],
deps = ["//third_party/forked/golang/go/types:go_default_library"],
)

filegroup(
Expand Down
3 changes: 1 addition & 2 deletions test/typecheck/srcimporter/srcimporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ import (
"go/build"
"go/parser"
"go/token"
"go/types"
"path/filepath"
"sync"

"k8s.io/kubernetes/third_party/forked/golang/go/types"
)

// An Importer provides the context for importing packages from source code.
Expand Down

0 comments on commit 328c3ce

Please sign in to comment.