-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Description
We plan to enable Bzlmod by default in Bazel 7.
Summary
--enable_bzlmod is 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
- Canonical label string must start with
@@ - The workspace name for the main repo will be fixed to
_main - Runfiles libraries must be used to access runfiles with apparent repo name.
@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
- Report Bzlmod related issues that are blocking your migration.
- File a
module wantedissue to the BCR repository. - Upvote your missing dependencies in this Bzlmod: Poll for the most wanted modules in the Bazel Central Registry
Nitikonkon2534, oriyadid, setoelkahfi and zhenk14dyumin, Kaszanas and YMRTZbrentleyjones, meisterT, alloveras, spotlightishere, jayakasadev and 3 more
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