Repository navigation
Commit 23528c2
committed
MODULE.bazel: keep bazel_dep(bazel-orfs) non-dev for load() visibility
flow/BUILD has \`load(\"@bazel-orfs//:openroad.bzl\", \"orfs_pdk\")\`,
which requires @bazel-orfs to be a visible bazel_dep of @orfs
even when @orfs is consumed as a non-root module (e.g. by
tools/OpenROAD). With dev_dependency = True the bazel_dep is a
no-op at non-root consumption and the load() fails.
The companion git_override(bazel-orfs, …) is implicitly root-only
by Bazel semantics — non-root modules' override directives are
silently ignored — so dropping dev_dependency = True does not
leak our local pin into downstream consumers; their own
bazel-orfs pin still wins.
Other dev_dependency = True bazel_deps (openroad, qt-bazel,
yosys-slang, bazel-orfs-verilog, toolchains_llvm) are unaffected
— none of @orfs's own BUILD files load() from them; the existing
load() callers (tools/OpenROAD/src/gui/BUILD, etc.) live in
downstream packages that bring their own bazel_deps.
Mirrors bazel-orfs's patches/0036-fix-bazel-orfs-bazel_dep-non-dev-for-load-visibility.patch
into ORFS directly so bazel-orfs no longer needs to carry it.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 01652ca commit 23528c2
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
36 | | - | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
0 commit comments