Merge pull request #59842 from ixdy/update-rules_go-02-2018

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

 Update bazelbuild/rules_go, kubernetes/repo-infra, and gazelle dependencies

**What this PR does / why we need it**: updates our bazelbuild/rules_go dependency in order to bump everything to go1.9.4. I'm separating this effort into two separate PRs, since updating rules_go requires a large cleanup, removing an attribute from most build rules.

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 96ec3187180b9c1d722756b3ea0984ebe65424dc
This commit is contained in:
Kubernetes Publisher
2018-02-19 22:23:05 -08:00
126 changed files with 1804 additions and 843 deletions
-1
View File
@@ -13,7 +13,6 @@ go_test(
"lruexpirecache_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/cache",
deps = [
"//vendor/github.com/golang/groupcache/lru:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library",
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["clock_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/clock",
)
go_library(
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["diff_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/diff",
)
go_library(
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["errors_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/errors",
)
go_library(
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"fmt"
)
// MessageCountMap contains occurance for each error message.
// MessageCountMap contains occurrence for each error message.
type MessageCountMap map[string]int
// Aggregate represents an object that contains multiple errors, but does not
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["framer_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/framer",
)
go_library(
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["intstr_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/intstr",
deps = ["//vendor/github.com/ghodss/yaml:go_default_library"],
)
-1
View File
@@ -16,7 +16,6 @@ go_test(
name = "go_default_test",
srcs = ["json_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/json",
)
filegroup(
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["util_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/mergepatch",
)
go_library(
-1
View File
@@ -16,7 +16,6 @@ go_test(
"util_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/net",
deps = ["//vendor/github.com/spf13/pflag:go_default_library"],
)
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["runtime_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/runtime",
)
go_library(
+1 -1
View File
@@ -43,7 +43,7 @@ var PanicHandlers = []func(interface{}){logPanic}
// TODO: remove this function. We are switching to a world where it's safe for
// apiserver to panic, since it will be restarted by kubelet. At the beginning
// of the Kubernetes project, nothing was going to restart apiserver and so
// catching panics was important. But it's actually much simpler for montoring
// catching panics was important. But it's actually much simpler for monitoring
// software if we just exit when an unexpected panic happens.
func HandleCrash(additionalHandlers ...func(interface{})) {
if r := recover(); r != nil {
-1
View File
@@ -52,7 +52,6 @@ go_test(
name = "go_default_test",
srcs = ["set_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/sets",
)
filegroup(
-1
View File
@@ -14,7 +14,6 @@ go_test(
"testdata/swagger-precision-item.json",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/strategicpatch",
deps = [
"//vendor/github.com/davecgh/go-spew/spew:go_default_library",
"//vendor/github.com/ghodss/yaml:go_default_library",
+2 -2
View File
@@ -423,7 +423,7 @@ func normalizeElementOrder(patch, serverOnly, patchOrder, serverOrder []interfac
// scan from the place of last insertion in `right` to the end of `right`,
// the place is before the first item that is greater than the item we want to insert.
// example usage: using server-only items as left and patch items as right. We insert server-only items
// to patch list. We use the order of live object as record for comparision.
// to patch list. We use the order of live object as record for comparison.
func mergeSortedSlice(left, right, serverOrder []interface{}, mergeKey string, kind reflect.Kind) []interface{} {
// Returns if l is less than r, and if both have been found.
// If l and r both present and l is in front of r, l is less than r.
@@ -2109,7 +2109,7 @@ func sliceTypeAssertion(original, patch interface{}) ([]interface{}, []interface
}
// extractRetainKeysPatchStrategy process patch strategy, which is a string may contains multiple
// patch strategies seperated by ",". It returns a boolean var indicating if it has
// patch strategies separated by ",". It returns a boolean var indicating if it has
// retainKeys strategies and a string for the other strategy.
func extractRetainKeysPatchStrategy(strategies []string) (bool, string, error) {
switch len(strategies) {
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["validation_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/validation",
deps = ["//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library"],
)
-1
View File
@@ -13,7 +13,6 @@ go_test(
"path_test.go",
],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/validation/field",
)
go_library(
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["wait_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/wait",
deps = ["//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library"],
)
-1
View File
@@ -10,7 +10,6 @@ go_test(
name = "go_default_test",
srcs = ["decoder_test.go"],
embed = [":go_default_library"],
importpath = "k8s.io/apimachinery/pkg/util/yaml",
)
go_library(