Skip to content

Commit

Permalink
chore: run gazelle
Browse files Browse the repository at this point in the history
Also delete the local_config_platform workaround for bazel 5 which made our docs setup complex
  • Loading branch information
alexeagle committed Oct 5, 2023
1 parent 078530c commit 26a5d09
Show file tree
Hide file tree
Showing 12 changed files with 396 additions and 438 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bazel_lib_internal_deps()

load("//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies(override_local_config_platform = True)
aspect_bazel_lib_dependencies()

# For running our own unit tests
load("@bazel_skylib//lib:unittest.bzl", "register_unittest_toolchains")
Expand Down
2 changes: 0 additions & 2 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# These loads are in the docs/ package rather than anything users depend on
# so that the dependency on stardoc doesn't leak to them.
load("//lib:docs.bzl", "stardoc_with_diff_test", "update_docs")

stardoc_with_diff_test(
Expand Down
8 changes: 1 addition & 7 deletions docs/repositories.md

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

96 changes: 46 additions & 50 deletions lib/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,19 @@ toolchain_type(
name = "tar_toolchain_type",
)

bzl_library(
name = "docs",
srcs = ["docs.bzl"],
deps = ["//lib/private/docs"],
)

bzl_library(
name = "expand_make_vars",
srcs = ["expand_make_vars.bzl"],
deps = [
":expand_template",
"//lib/private/docs:expand_locations",
"//lib/private/docs:expand_variables",
],
)

bzl_library(
name = "expand_template",
srcs = ["expand_template.bzl"],
deps = [
"//lib/private/docs:expand_locations",
"//lib/private/docs:expand_template",
"//lib/private/docs:expand_variables",
"//lib/private:expand_template",
"@bazel_skylib//lib:types",
"@bazel_skylib//rules:write_file",
],
Expand All @@ -90,26 +80,26 @@ bzl_library(
bzl_library(
name = "params_file",
srcs = ["params_file.bzl"],
deps = ["//lib/private/docs:params_file"],
deps = ["//lib/private:params_file"],
)

bzl_library(
name = "paths",
srcs = ["paths.bzl"],
deps = ["//lib/private/docs:paths"],
deps = ["//lib/private:paths"],
)

bzl_library(
name = "utils",
srcs = ["utils.bzl"],
deps = ["//lib/private/docs:utils"],
deps = ["//lib/private:utils"],
)

bzl_library(
name = "tar",
srcs = ["tar.bzl"],
deps = [
"//lib/private/docs:tar",
"//lib/private:tar",
"@bazel_skylib//lib:types",
"@bazel_skylib//rules:write_file",
],
Expand All @@ -120,44 +110,51 @@ bzl_library(
srcs = ["jq.bzl"],
visibility = ["//visibility:public"],
deps = [
"//lib/private/docs:jq",
"//lib/private:jq",
],
)

bzl_library(
name = "directory_path",
srcs = ["directory_path.bzl"],
deps = ["//lib/private/docs:directory_path"],
deps = ["//lib/private:directory_path"],
)

bzl_library(
name = "output_files",
srcs = ["output_files.bzl"],
deps = ["//lib/private/docs:output_files"],
deps = ["//lib/private:output_files"],
)

bzl_library(
name = "copy_file",
srcs = ["copy_file.bzl"],
deps = ["//lib/private/docs:copy_file"],
deps = ["//lib/private:copy_file"],
)

bzl_library(
name = "copy_directory",
srcs = ["copy_directory.bzl"],
deps = ["//lib/private/docs:copy_directory"],
deps = ["//lib/private:copy_directory"],
)

bzl_library(
name = "copy_to_directory",
srcs = ["copy_to_directory.bzl"],
deps = ["//lib/private/docs:copy_to_directory"],
deps = ["//lib/private:copy_to_directory"],
)

bzl_library(
name = "copy_to_bin",
srcs = ["copy_to_bin.bzl"],
deps = ["//lib/private/docs:copy_to_bin"],
deps = ["//lib/private:copy_to_bin"],
)

#keep
bzl_library(
name = "diff_test",
srcs = ["diff_test.bzl"],
deps = ["//lib/private:diff_test"],
)

bzl_library(
Expand All @@ -166,57 +163,51 @@ bzl_library(
deps = [
":diff_test",
":utils",
"//lib/private/docs:fail_with_message_test",
"//lib/private/docs:write_source_file",
# "//lib/private:fail_with_message_test",
"//lib/private:write_source_file",
],
)

bzl_library(
name = "diff_test",
srcs = ["diff_test.bzl"],
deps = ["//lib/private/docs:diff_test"],
)

bzl_library(
name = "run_binary",
srcs = ["run_binary.bzl"],
deps = ["//lib/private/docs:run_binary"],
deps = ["//lib/private:run_binary"],
)

bzl_library(
name = "repo_utils",
srcs = ["repo_utils.bzl"],
deps = [
"//lib/private/docs:patch",
"//lib/private/docs:repo_utils",
"//lib/private:patch",
"//lib/private:repo_utils",
],
)

bzl_library(
name = "yq",
srcs = ["yq.bzl"],
deps = ["//lib/private/docs:yq"],
deps = ["//lib/private:yq"],
)

bzl_library(
name = "glob_match",
srcs = ["glob_match.bzl"],
deps = ["//lib/private/docs:glob_match"],
deps = ["//lib/private:glob_match"],
)

bzl_library(
name = "host_repo",
srcs = ["host_repo.bzl"],
deps = [
"//lib/private/docs:host_repo",
"//lib/private:host_repo",
"@bazel_skylib//lib:versions",
],
)

bzl_library(
name = "stamping",
srcs = ["stamping.bzl"],
deps = ["//lib/private/docs:stamping"],
deps = ["//lib/private:stamping"],
)

bzl_library(
Expand All @@ -243,15 +234,14 @@ bzl_library(
srcs = ["repositories.bzl"],
deps = [
":utils",
"//lib/private/docs:copy_directory_toolchain",
"//lib/private/docs:copy_to_directory_toolchain",
"//lib/private/docs:coreutils_toolchain",
"//lib/private/docs:expand_template_toolchain",
"//lib/private/docs:jq_toolchain",
"//lib/private/docs:local_config_platform",
"//lib/private/docs:source_toolchains_repo",
"//lib/private/docs:tar_toolchain",
"//lib/private/docs:yq_toolchain",
"//lib/private:copy_directory_toolchain",
"//lib/private:copy_to_directory_toolchain",
"//lib/private:coreutils_toolchain",
"//lib/private:expand_template_toolchain",
"//lib/private:jq_toolchain",
"//lib/private:source_toolchains_repo",
"//lib/private:tar_toolchain",
"//lib/private:yq_toolchain",
],
)

Expand All @@ -266,13 +256,13 @@ bzl_library(
bzl_library(
name = "platform_utils",
srcs = ["platform_utils.bzl"],
deps = ["//lib/private/docs:platform_utils"],
deps = ["//lib/private:platform_utils"],
)

bzl_library(
name = "base64",
srcs = ["base64.bzl"],
deps = ["//lib/private/docs:base64"],
deps = ["//lib/private:base64"],
)

bzl_library(
Expand All @@ -284,13 +274,19 @@ bzl_library(
bzl_library(
name = "strings",
srcs = ["strings.bzl"],
deps = ["//lib/private/docs:strings"],
deps = ["//lib/private:strings"],
)

bzl_library(
name = "lists",
srcs = ["lists.bzl"],
deps = ["//lib/private/docs:lists"],
deps = ["//lib/private:lists"],
)

bzl_library(
name = "docs",
srcs = ["docs.bzl"],
deps = ["//lib/private:docs"],
)

bzl_library(
Expand Down
Loading

0 comments on commit 26a5d09

Please sign in to comment.