Skip to content

--enable_bzlmod breaks toolchain resolution for toolchains registered in WORKSPACE #17289

@gregmagolan

Description

@gregmagolan

Description of the bug:

Setting the --enable_bzlmod flag (even with an empty MODULE.bazel file) breaks toolchain resolution for toolchains registered in the WORKSPACE file.

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

https://github.com/gregmagolan/repro-enable_bzlmod_breaks_workspace

Which operating system are you running Bazel on?

MacOS

What is the output of bazel info release?

release 6.0.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

https://github.com/gregmagolan/repro-enable_bzlmod_breaks_workspace

Have you found anything relevant by searching the web?

Searched through Bazel issues and didn't see any duplicates.

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

Metadata

Metadata

Assignees

No one assigned

    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