Skip to content

@wkspc shorthand label syntax works as a dependency but not on command line #4385

@alexeagle

Description

@alexeagle

Bazel 0.8.1
The current treatment of a label expressed as just @wkspc is inconsistent.

I can have deps=["@rxjs"] as a shorthand for deps=["@rxjs//:rxjs"]

But if I bazel build @rxjs I get

INFO: Analysed 0 targets (4 packages loaded).
INFO: Found 0 targets...

and if I try to abbreviate bazel run @yarn//:yarn as bazel run @yarn I get ERROR: No targets found to run

Reproduction in this repo:
https://github.com/alexeagle/angular-bazel-example

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions