Skip to content

Improve error message of missing labels/paths in splicer.rs #3460

Open
@hofbi

Description

@hofbi

In case I would remove one of the lines in

"//multi_package/pkg_a:Cargo.toml",
"//multi_package/sub_pkgs/pkg_b:Cargo.toml",
"//multi_package/sub_pkgs/pkg_c:Cargo.toml",
and run a bazel mod tidy, I will get an error message such as

Please add the following labels to the `manifests` key:
  //multi_package/sub_pkgs/pkg_b:Cargo.toml

If there is not only a single MODULE.bazel file but the codebase uses the include feature, it might take new users some time to find where this has to be added.

Is it possible to extend the error message with the file where this has to be added?

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