Commit 4959d34
fix: export constraints.bzl file from @local_config_platform so it can be used in downstream bzl_library targets
Downstream rule sets may depend on `@local_config_platform//:constraints.bzl` but when they do there is no way easy way to make that load statement compatible with `bzl_library`. This change makes it possible to use `bzl_library` on starlark code that loads from `@local_config_platform//:constraints.bzl`.
For example,
```
bzl_library(
name = "local_config_platform_constraints",
srcs = ["@local_config_platform//:constraints.bzl"],
)
bzl_library(
name = "platform_utils",
srcs = ["//lib/private:platform_utils.bzl"],
deps = [":local_config_platform_constraints"],
)
```
Closes bazelbuild#16665.
PiperOrigin-RevId: 486957479
Change-Id: I328b7a3722aea95b3151ed88f23c277ed41542021 parent 5903c31 commit 4959d34
File tree
1 file changed
+5
-1
lines changed- src/main/java/com/google/devtools/build/lib/bazel/repository
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
0 commit comments