Skip to content

Commit aa57882

Browse files
authored
More compatability between bzlmod and WORKSPACE (#15)
- Create a `defs` library - Create an empty report file - Be consistent about this repo presenting the same build interface as the generated repo ### Changes are visible to end-users: no ### Test plan N/A.
1 parent 85250bb commit aa57882

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# The root BUILD.bazel should be empty to minimize user-exposed deps
1+
exports_files(["report.json", "defs.bzl"], visibility = ["//visibility:public"])

extension.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ TELEMETRY = 1
135135

136136
repository_ctx.file(
137137
"BUILD.bazel",
138-
"""
138+
"""\
139139
exports_files(["report.json", "defs.bzl"], visibility = ["//visibility:public"])
140140
"""
141141
)

report.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)