Skip to content

Commit a15fd19

Browse files
authored
Merge pull request #4342 from oharboe/bazel-orfs-dep-non-dev
bazel: keep bazel_dep(bazel-orfs) non-dev for load() visibility
2 parents 4a68ecf + f627783 commit a15fd19

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎MODULE.bazel‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ git_override(
3333
remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
3434
)
3535

36-
bazel_dep(name = "bazel-orfs", dev_dependency = True)
36+
# Exception to the dev-only rule above: flow/BUILD has
37+
# load("@bazel-orfs//:openroad.bzl", "orfs_pdk"), so @bazel-orfs must stay
38+
# visible from @orfs even at non-root consumption; a dev-only bazel_dep
39+
# suppresses that visibility. Only the git_override below (implicitly
40+
# root-only) is dev-conditional — at non-root the consumer's own bazel-orfs
41+
# satisfies this dep. When @orfs is root, dev deps are honoured anyway, so
42+
# the resolved module graph is unchanged.
43+
bazel_dep(name = "bazel-orfs", version = "0.0.1")
44+
3745
bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True)
3846

3947
BAZEL_ORFS_COMMIT = "6ebadeb4be5c9ada103081c9a5e668c014126616"

0 commit comments

Comments
 (0)