From 2b980e934300a678972943ca2c9db1c92a413c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 8 Jul 2026 17:17:44 +0200 Subject: [PATCH 1/2] bazel: keep bazel_dep(bazel-orfs) non-dev for load() visibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit flow/BUILD has load("@bazel-orfs//:openroad.bzl", "orfs_pdk"), which needs @bazel-orfs visible from @orfs even when ORFS is consumed as a non-root module. Marking the bazel_dep dev-only suppresses that visibility, and every non-root consumer (bazel-orfs itself, its gallery and downstream-test workspaces) has to patch it back in at consumption time (bazel-orfs patches/0036). Only the git_override needs to be dev-conditional, and it already is: overrides are implicitly root-only. At non-root the consumer's own bazel-orfs module satisfies the dep; when @orfs is the root module, dev deps are honoured anyway, so 'bazel mod graph' output is byte-identical before and after this change. Co-Authored-By: Claude Fable 5 Signed-off-by: Øyvind Harboe --- MODULE.bazel | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 1d21ea2f79..1397166cfb 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -33,7 +33,15 @@ git_override( remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts", ) -bazel_dep(name = "bazel-orfs", dev_dependency = True) +# Exception to the dev-only rule above: flow/BUILD has +# load("@bazel-orfs//:openroad.bzl", "orfs_pdk"), so @bazel-orfs must stay +# visible from @orfs even at non-root consumption; a dev-only bazel_dep +# suppresses that visibility. Only the git_override below (implicitly +# root-only) is dev-conditional — at non-root the consumer's own bazel-orfs +# satisfies this dep. When @orfs is root, dev deps are honoured anyway, so +# the resolved module graph is unchanged. +bazel_dep(name = "bazel-orfs") + bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True) BAZEL_ORFS_COMMIT = "6ebadeb4be5c9ada103081c9a5e668c014126616" From f627783c1822119d7096f8bf03abb174327ed59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 8 Jul 2026 17:40:58 +0200 Subject: [PATCH 2/2] Update MODULE.bazel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Øyvind Harboe --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 1397166cfb..4f8e45cebf 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -40,7 +40,7 @@ git_override( # root-only) is dev-conditional — at non-root the consumer's own bazel-orfs # satisfies this dep. When @orfs is root, dev deps are honoured anyway, so # the resolved module graph is unchanged. -bazel_dep(name = "bazel-orfs") +bazel_dep(name = "bazel-orfs", version = "0.0.1") bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True)