From 362dd663f873dee7d6c1d15abf8b914d6a6b0000 Mon Sep 17 00:00:00 2001 From: Philipp Schrader Date: Mon, 28 Aug 2023 00:20:10 -0700 Subject: [PATCH] Fix BUILD.bazel style violations (#8081) `buildifier` was complaining as follows: #### :bazel: buildifier: found 2 lint issues in your WORKSPACE, BUILD and *.bzl files
tests/ts/bazel_repository_test_dir/BUILD:3:1: out-of-order-load: Load statement is out of its lexicographical order.
    ts/BUILD.bazel:2:1: out-of-order-load: Load statement is out of its lexicographical order.
This can be fixed locally like so: $ buildifier -lint fix $(git ls-files | grep -e '/BUILD.bazel$' -e '/BUILD$' -e '\ BUILD.bazel} | 2 +- ts/BUILD.bazel | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/ts/bazel_repository_test_dir/{BUILD => BUILD.bazel} (100%) diff --git a/tests/ts/bazel_repository_test_dir/BUILD b/tests/ts/bazel_repository_test_dir/BUILD.bazel similarity index 100% rename from tests/ts/bazel_repository_test_dir/BUILD rename to tests/ts/bazel_repository_test_dir/BUILD.bazel index f4e89a602..f6b01c5ec 100644 --- a/tests/ts/bazel_repository_test_dir/BUILD +++ b/tests/ts/bazel_repository_test_dir/BUILD.bazel @@ -1,6 +1,6 @@ load("@aspect_rules_js//js:defs.bzl", "js_test") -load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library") load("@aspect_rules_js//npm:defs.bzl", "npm_link_package") +load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library") load("@npm//:defs.bzl", "npm_link_all_packages") npm_link_all_packages(name = "node_modules") diff --git a/ts/BUILD.bazel b/ts/BUILD.bazel index 4b86fe3d3..9bd9f4be3 100644 --- a/ts/BUILD.bazel +++ b/ts/BUILD.bazel @@ -1,5 +1,5 @@ -load("@aspect_rules_ts//ts:defs.bzl", "ts_project") load("@aspect_rules_js//npm:defs.bzl", "npm_package") +load("@aspect_rules_ts//ts:defs.bzl", "ts_project") filegroup( name = "distribution",