Skip to content

Commit

Permalink
Add bzl_library targets to Gazelle
Browse files Browse the repository at this point in the history
  • Loading branch information
achew22 committed Apr 16, 2020
1 parent f97187c commit 0b16fe3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
13 changes: 13 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load("@io_bazel_rules_go//go:def.bzl", "nogo")
load("//:def.bzl", "gazelle", "gazelle_binary")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# gazelle:prefix github.com/bazelbuild/bazel-gazelle
# gazelle:exclude vendor
Expand Down Expand Up @@ -68,3 +69,15 @@ filegroup(
],
visibility = ["//visibility:public"],
)

bzl_library(
name = "bzl",
srcs = [
"def.bzl",
"deps.bzl",
],
deps = [
"//internal:bzl",
"@bazel_skylib//lib:shell",
],
)
17 changes: 16 additions & 1 deletion internal/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
load("@io_bazel_rules_go//go/tools/bazel_testing:def.bzl", "go_bazel_test")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# gazelle:exclude go_repository_test.go
go_bazel_test(
name = "go_repository_test",
srcs = ["go_repository_test.go"],
deps = ["//testtools:go_default_library"],
rule_files = [
"@bazel_gazelle//:all_files",
"@io_bazel_rules_go//:all_files",
],
deps = ["//testtools:go_default_library"],
)

# TODO(jayconrod): test fetch_repo error cases.
Expand Down Expand Up @@ -44,3 +45,17 @@ filegroup(
],
visibility = ["//visibility:public"],
)

bzl_library(
name = "bzl",
srcs = [
"gazelle_binary.bzl",
"go_repository.bzl",
"go_repository_cache.bzl",
"go_repository_config.bzl",
"go_repository_tools.bzl",
"go_repository_tools_srcs.bzl",
"overlay_repository.bzl",
],
visibility = ["//:__pkg__"],
)

0 comments on commit 0b16fe3

Please sign in to comment.