-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
27 lines (24 loc) · 1.17 KB
/
Copy pathBUILD.bazel
File metadata and controls
27 lines (24 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# The root package is inside the Ruleset Module, not a consumer: it asserts an
# implementation helper below, which is the only reason it reaches into
# //flutter/private.
# buildifier: disable=bzl-visibility
load("//flutter/private:android.bzl", "flutter_assets_dir")
load("//tools/ci:assertions.bzl", "expect_equal")
# The root package exists so //tools/format:buildifier_test has a label in it to
# locate the tree it should check. Nothing reads MODULE.bazel's contents through
# this export.
#
# `plugin_deps.MODULE.bazel` used to be exported here too, for the include() in
# this module's own MODULE.bazel. Both moved to //examples/demo_app: the segment
# describes one app's Maven graph, not the ruleset's.
package(default_visibility = ["//visibility:public"])
exports_files(["MODULE.bazel"])
# Asserted rather than merely called: a silently wrong prefix is the failure
# this helper exists to prevent, and the root package is the case with no
# separator. Checked here rather than from a Consumer Module because the
# supported API deliberately does not export the helper.
expect_equal(
flutter_assets_dir(assets = ":assets"),
"assets",
"flutter_assets_dir in the root package",
)