-
Notifications
You must be signed in to change notification settings - Fork 4.4k
enable_bzlmod: Flip the default value of --enable_bzlmod to true #18958
Copy link
Copy link
Closed
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)area-BzlmodBzlmod-specific PRs, issues, and feature requestsBzlmod-specific PRs, issues, and feature requestsbreaking-change-7.0Incompatible flags to be flipped in Bazel 7.0Incompatible flags to be flipped in Bazel 7.0incompatible-changeIncompatible/breaking changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Milestone
Metadata
Metadata
Assignees
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)area-BzlmodBzlmod-specific PRs, issues, and feature requestsBzlmod-specific PRs, issues, and feature requestsbreaking-change-7.0Incompatible flags to be flipped in Bazel 7.0Incompatible flags to be flipped in Bazel 7.0incompatible-changeIncompatible/breaking changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Type
Projects
Status
Done
We plan to enable Bzlmod by default in Bazel 7.
Summary
--enable_bzlmodis enabled by default. Bazel will try to fetch external dependencies from MODULE.bazel, if the requested external dependency is not found, it will fallback to fetch dependencies from WORKSPACE.Incompatible changes
TODO: write more guidance for common issues users may encounter
@@_main@bazel_toolsfetched from Bzlmod.Migration
Bazel users are encouraged to migrate to Bzlmod. The migration guide is available at https://bazel.build/external/migration
If your project or dependencies are not yet ready for Bzlmod, you can disable Bzlmod by
--noenable_bzlmod.And please feel free to
module wantedissue to the BCR repository.