From c952adeb35f3bc0481175e27beb79a86530b7ce1 Mon Sep 17 00:00:00 2001 From: Erick Fejta Date: Wed, 16 Jan 2019 17:32:23 -0800 Subject: [PATCH] Get golint from go_repository --- BUILD.bazel | 2 +- WORKSPACE | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BUILD.bazel b/BUILD.bazel index 165f1da4ca..2a785c2f8f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -25,7 +25,7 @@ workspace_binary( workspace_binary( name = "golint", - cmd = "//vendor/github.com/golang/lint/golint", + cmd = "@com_github_golang_lint//golint", ) load("@bazel_gazelle//:def.bzl", "gazelle") diff --git a/WORKSPACE b/WORKSPACE index 2d36359937..3189491a91 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -76,6 +76,14 @@ load( container_repositories() ## END test-infra repos +# Repos needed by utilities + +go_repository( + name = "com_github_golang_lint", + commit = "470b6b0bb3005eda157f0275e2e4895055396a81", + importpath = "github.com/golang/lint", +) + ## Repos generated by hack/update-deps.sh below go_repository(