Skip to content

The workspace name specified in WORKSPACE is not part of the main repo mapping in Bzlmod #15657

@Wyverald

Description

@Wyverald
# WORKSPACE
workspace(name = "old")

# MODULE.bazel
module(name = "new")

# BUILD
java_library(name = "dep")
java_library(
    name = "test",
    deps = [
        "@new//:dep", # works
        "@old//:dep", # doesn't work
    ],
)

To ease migration, both should work.

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)area-BzlmodBzlmod-specific PRs, issues, and feature requeststeam-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