Skip to content

print in a module appears to be different from print in a workspace rule #14526

@shs96c

Description

@shs96c

Description of the problem / feature request:

print appears to behave differently between workspace rules and when used in a module.

When called from a workspace, the output of print is prefixed by a DEBUG statement, and then the path to the file, whereas this is missing when the same function is called from a module.

What's the output of bazel info release?

5.0.0rc3

Any other information, logs, or outputs that you want to share?

The way that print works when called from a workspace is nicer: it makes the output easy to identify and it's easy to grep for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)area-BzlmodBzlmod-specific PRs, issues, and feature requeststeam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions