Skip to content

[Bazel CI] Build failed with "error loading package 'external'" when both --enable_bzlmod and --enable_workspace are disabled  #2175

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4093#0191abc3-f278-4c75-9d49-f2a4421c05ff

Platform: Ubuntu

Logs:

ERROR: �[0merror loading package 'external': Both --enable_bzlmod and --enable_workspace are disabled, but one of them must be enabled to fetch external dependencies.

Culprit: bazelbuild/bazel@5881c38

Note : This issue is due to bazelbuild/bazel#23023. After --enable_workspace is flipped to false, users have to explicitly specify it where it's needed, or fully migrate to Bzlmod.

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions