From 0c1ec536a2d7dea919c0e8c371d030e25978ef67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 24 Aug 2026 20:12:30 +0200 Subject: [PATCH] fix: make @chisel_firtool resolvable when rules_chisel is a dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The verilog rules' implicit _firtool attribute defaults to @chisel_firtool//:bin/firtool, an apparent repo name resolved through rules_chisel's own repo mapping. That mapping entry comes from the chisel module extension, which MODULE.bazel declares with dev_dependency = True — so it exists in this repo's own (root-module) CI, but is dropped whenever rules_chisel is consumed as a dependency. Any consumer using fir_library / verilog_directory / verilog_file then fails analysis with: No repository visible as '@chisel_firtool' from repository '@@rules_chisel+' Declare the extension use as a regular dependency. Settings resolution already prefers the root module's chisel.toolchain tag, so this module's own tag only serves as the fallback default for consumers that don't configure one. Co-Authored-By: Claude Fable 5 --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index a753085..d86e0a6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -27,7 +27,7 @@ scala_deps = use_extension( scala_deps.scala() scala_deps.scalatest() -chisel = use_extension("//chisel:extensions.bzl", "chisel", dev_dependency = True) +chisel = use_extension("//chisel:extensions.bzl", "chisel") chisel.toolchain( chisel_version = "7.2.0", fetch_sources = True,