Skip to content

--incompatible_disable_autoloads_in_main_repo #25755

@comius

Description

@comius

Current status: Enabled only in Bazel@HEAD, available from Bazel 8.2.0

Motivation

Get more repositories to add loads for Starlarkified rules.

Description

Stops autoloading in main repository. All loads in main repository must be explicit.

Incompatible Flag

incompatible_disable_autoloads_in_main_repo

Migration Guide

Run the latest version of buildifier on the repository. Using buildifier --lint=fix -r -v . will add loads to the whole repository. Add required dependencies to MODULE.bazel or WORKSPACE if they are missing (rules_shell, com_goole_protobuf, rules_java, rules_cc).

In which Bazel LTS version will this incompatible change be enabled?

Bazel 9

Additional Context

No response

TODO List

  • Bazel
  • Bazel Bench
  • Bazel Examples
  • Bazelisk
  • IntelliJ
  • Cloud Robotics Core
  • Flogger
  • Stardoc

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking changeteam-Rules-APIAPI for writing rules/aspects: providers, runfiles, actions, artifacts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions