Skip to content

Commit

Permalink
chore: update go dependencies, make it easier to automate (kythe#4281)
Browse files Browse the repository at this point in the history
* chore: update go dependencies, make it easier to automate

* chore: exclude paths which cause gazelle problems

* chore: update go_repository wrapper docstring

* chore: get gazelle to ignore redudant repositories

* chore: remove unused dependency
  • Loading branch information
shahms authored Dec 19, 2019
1 parent 07b8ac6 commit 1059f1c
Show file tree
Hide file tree
Showing 51 changed files with 1,002 additions and 540 deletions.
7 changes: 7 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package(default_visibility = ["//visibility:private"])

load("//:version.bzl", "MAX_VERSION", "MIN_VERSION")
load("@bazel_gazelle//:def.bzl", "gazelle")

exports_files(glob(["*"]))

Expand All @@ -27,3 +28,9 @@ sh_test(
".bazelversion",
],
)

# gazelle:build_file_name BUILD
# gazelle:exclude kythe
# gazelle:exclude third_party
# gazelle:prefix kythe.io
gazelle(name = "gazelle")
5 changes: 3 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ workspace(
)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
load("//:version.bzl", "check_version", "MAX_VERSION", "MIN_VERSION")
load("//:version.bzl", "MAX_VERSION", "MIN_VERSION", "check_version")

# Check that the user has a version between our minimum supported version of
# Bazel and our maximum supported version of Bazel.
Expand Down Expand Up @@ -38,6 +37,7 @@ maybe(
name = "io_bazel_rules_go_compat",
)

# gazelle:repository_macro external.bzl%_go_dependencies
load("//:external.bzl", "kythe_dependencies")

kythe_dependencies()
Expand Down Expand Up @@ -69,4 +69,5 @@ bind(
)

load("@maven//:compat.bzl", "compat_repositories")

compat_repositories()
Loading

0 comments on commit 1059f1c

Please sign in to comment.