Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
328c3ce9
Unverified
Commit
328c3ce9
authored
Oct 24, 2018
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap typecheck to use go/types stdlib
parent
c31d7f5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
+3
-7
BUILD
test/typecheck/BUILD
+0
-1
main.go
test/typecheck/main.go
+2
-3
BUILD
test/typecheck/srcimporter/BUILD
+0
-1
srcimporter.go
test/typecheck/srcimporter/srcimporter.go
+1
-2
No files found.
test/typecheck/BUILD
View file @
328c3ce9
...
...
@@ -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",
],
)
...
...
test/typecheck/main.go
View file @
328c3ce9
...
...
@@ -24,6 +24,7 @@ import (
"go/build"
"go/parser"
"go/token"
"go/types"
"io"
"log"
"os"
...
...
@@ -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
(
...
...
test/typecheck/srcimporter/BUILD
View file @
328c3ce9
...
...
@@ -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(
...
...
test/typecheck/srcimporter/srcimporter.go
View file @
328c3ce9
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment