-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMODULE.bazel
More file actions
85 lines (76 loc) · 2.63 KB
/
Copy pathMODULE.bazel
File metadata and controls
85 lines (76 loc) · 2.63 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
"Bazel dependencies"
module(
name = "rules_flutter",
# Stamped by the release workflow; 0.0.0 on main between releases.
version = "0.0.0",
bazel_compatibility = [">=8.0.0"],
compatibility_level = 1,
)
bazel_dep(name = "bazel_skylib", version = "1.4.1")
# Floor for the transitively-resolved apple_support: protobuf's C++ tools are
# compiled with its wrapped_clang on macOS, and older versions ship a
# binary rejected by current Xcode toolchains (missing LC_UUID).
bazel_dep(name = "apple_support", version = "1.23.1")
bazel_dep(name = "platforms", version = "0.0.5")
bazel_dep(name = "protobuf", version = "32.1")
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True)
# Kept in lockstep with .pre-commit-config.yaml's pre-commit-buildifier rev
# so the two gates agree on formatting.
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True)
# The Gazelle plugin lives in its own module (gazelle/) so that plain
# rules_flutter consumers never resolve Go rules or a Go toolchain. These
# dev-only deps exist to run `bazel run //:gazelle` in this repo.
bazel_dep(name = "gazelle", version = "0.36.0", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "rules_flutter_gazelle", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_flutter_gazelle",
path = "gazelle",
)
flutter = use_extension("//flutter:extensions.bzl", "flutter")
flutter.toolchain(flutter_version = "3.24.0")
use_repo(
flutter,
"flutter_sdk",
"flutter_toolchains",
)
register_toolchains("@flutter_toolchains//:all")
# These tags must stay non-dev: pub.package-registered repositories keep
# their fetch-time vendored .pub_cache closure, and the dart_proto_library
# aspect executes protoc-gen-dart from @pub_protoc_plugin against exactly
# that closure. Making them dev_dependency would delete it in consumer
# workspaces and break proto generation at execution time.
pub = use_extension("//flutter:extensions.bzl", "pub")
pub.package(
name = "pub_fixnum",
package = "fixnum",
version = "1.1.1",
)
pub.package(
name = "pub_protobuf",
package = "protobuf",
version = "3.1.0",
)
pub.package(
name = "pub_path",
package = "path",
version = "1.9.0",
)
pub.package(
name = "pub_protoc_plugin",
package = "protoc_plugin",
version = "21.1.1",
)
pub.package(
name = "pub_meta",
package = "meta",
version = "1.15.0",
)
use_repo(
pub,
"pub_fixnum",
"pub_meta",
"pub_path",
"pub_protobuf",
"pub_protoc_plugin",
)