Repository navigation
Conversation
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
There was a problem hiding this comment.
Code Review
This pull request aims to expose the fix_lint and lint_test targets by applying a patch to make them public in OpenROAD and defining aliases for them. However, two critical issues were identified: first, changing ]] to ] in flow/BUILD introduces a syntax error by leaving a list comprehension unclosed; second, the aliases are defined in flow/BUILD instead of the root BUILD.bazel file, which deviates from the intended root-level target usage.
|
Closing PR as redundant: Downstream workspaces like ORFS do not require local alias targets or patches in bazelisk run @openroad//:fix_lintfrom the root of ORFS to auto-format Tcl, Bazel, and YAML files across the repository using the exact version-pinned toolchain. |
|
moot |
|
Fixed the syntax error in |
Summary
This PR exposes the Bazel-managed linter/formatter target (
//:fix_lintand//:lint_test) fromtools/OpenROADso that OpenROAD-flow-scripts (ORFS) can reuse OpenROAD's version-pinned linter toolchain (tclint,tclfmt,buildifier) as a Single Source of Truth (SOT).Key Changes
flow/BUILD: Added top-levelfix_lintandlint_testalias targets pointing to//tools/OpenROAD:fix_lintand//tools/OpenROAD:lint_test.patches/openroad/: Carries a patch settingvisibility = ["//visibility:public"].Usage
Running
bazelisk run //:fix_lintin ORFS executes the version-pinned linter toolchain on ORFS files (flow/scripts/**/*.tcl,flow/BUILD,MODULE.bazel).