Skip to content

Add --enable_workspace flag (defaulting to true) to allow turning off WORKSPACE logic #20185

@Wyverald

Description

@Wyverald

Setting this flag to false should turn off all WORKSPACE related logic, including evaluating the WORKSPACE/WORKSPACE.bazel/WORKSPACE.bzlmod files at all, any WORKSPACE prefixes/suffixes, the LocalRepositoryLookupFunction (with some sort of replacement).

A blocker for this issue would be #18285; we currently still don't have a way to specify a local_repository/new_local_repository in a module extension.

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: feature request

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions