Skip to content

Review bzlmod dependencies and make use of dev_dependency = True #294

@hofbi

Description

@hofbi

I came over this through rules_multitools which provides https://github.com/bazel-contrib/rules_multitool/blob/b9fa2d73361fa656666e347f7152571add548a1c/multitool/private/hub_repo_template/tools.bzl.template#L3

After adding bazel-diff to my bazel_deps, my list of multitools was suddenly growing with a bunch of formatters coming from aspect_rules_list. This means bazel-diff is exposing all formatter of rules_lint to their dependencies in

bazel_dep(name = "aspect_rules_lint", version = "1.0.2")
. To me, rules_lint should be a dev_dependency as now of your users might need them to run bazel-diff.

In general, we should use this issue to review which dependencies users actually need and which deps should become dev_dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions