Skip to content

Commit

Permalink
Merge pull request kubernetes#72255 from krzyzacy/get-golint
Browse files Browse the repository at this point in the history
Vendor golint in k/k, and use the vendor version in verify-golint check
  • Loading branch information
k8s-ci-robot authored Dec 29, 2018
2 parents fcdc365 + 6b7ccc9 commit a65ba5f
Show file tree
Hide file tree
Showing 27 changed files with 5,766 additions and 19 deletions.
17 changes: 17 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 140 additions & 0 deletions Godeps/LICENSES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hack/godep-save.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ REQUIRED_BINS=(
"github.com/bazelbuild/bazel-gazelle/cmd/gazelle"
"github.com/kubernetes/repo-infra/kazel"
"k8s.io/kube-openapi/cmd/openapi-gen"
"golang.org/x/lint/golint"
"./..."
)

Expand Down
14 changes: 9 additions & 5 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"

kube::golang::verify_go_version

if ! which golint > /dev/null; then
echo 'Can not find golint, install with:'
echo 'go get -u golang.org/x/lint/golint'
exit 1
fi

# Ensure that we find the binaries we build before anything else.
export GOBIN="${KUBE_OUTPUT_BINPATH}"
PATH="${GOBIN}:${PATH}"

# Install golint from vendor
echo 'installing golint from vendor'
go install k8s.io/kubernetes/vendor/golang.org/x/lint/golint


cd "${KUBE_ROOT}"

Expand Down
3 changes: 3 additions & 0 deletions vendor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ filegroup(
"//vendor/golang.org/x/crypto/poly1305:all-srcs",
"//vendor/golang.org/x/crypto/salsa20/salsa:all-srcs",
"//vendor/golang.org/x/crypto/ssh:all-srcs",
"//vendor/golang.org/x/lint:all-srcs",
"//vendor/golang.org/x/net/context:all-srcs",
"//vendor/golang.org/x/net/html:all-srcs",
"//vendor/golang.org/x/net/http2:all-srcs",
Expand Down Expand Up @@ -417,6 +418,8 @@ filegroup(
"//vendor/golang.org/x/tools/benchmark/parse:all-srcs",
"//vendor/golang.org/x/tools/container/intsets:all-srcs",
"//vendor/golang.org/x/tools/go/ast/astutil:all-srcs",
"//vendor/golang.org/x/tools/go/gcexportdata:all-srcs",
"//vendor/golang.org/x/tools/go/gcimporter15:all-srcs",
"//vendor/golang.org/x/tools/go/vcs:all-srcs",
"//vendor/golang.org/x/tools/imports:all-srcs",
"//vendor/gonum.org/v1/gonum/blas:all-srcs",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

19 changes: 19 additions & 0 deletions vendor/golang.org/x/lint/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions vendor/golang.org/x/lint/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/golang.org/x/lint/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/golang.org/x/lint/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a65ba5f

Please sign in to comment.