Skip to content

sh_binary's data dependencies are not triggered during the build #15043

@linzhp

Description

@linzhp

Description of the problem / feature request:

When a sh_binary has a target in the data attribute, the target is not built automatically when the sh_binary target is built.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  • Check out rules_docker
  • bazel clean
  • bazel build //docs:update
  • ls bazel-bin/docs/container.md_
    Although bazel-bin/docs/container.md_ is the output of //docs:container_doc, which is depended by //docs:update, it is not built.

What operating system are you running Bazel on?

macOS

What's the output of bazel info release?

release 5.0.0-homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-ServerIssues for serverside rules included with Bazeltype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions