Skip to content

incompatible_disable_native_repo_rules #22080

@Wyverald

Description

@Wyverald

Added in 09d50f9, this flag turns off all usages of native repo rules in favor of their Starlark counterparts.

Planned to flip in 9.0.

native repo rule Starlark counterpart
local_repository load("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")
local_config_platform Use the platform target @platform//host directly.
For host contraints, load from @platform//host:constraints.bzl.
new_local_repository load("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
android_sdk_repository Use https://github.com/bazelbuild/rules_android
android_ndk_repository Use https://github.com/bazelbuild/rules_android_ndk

See also #18285

Metadata

Metadata

Assignees

No one assigned

    Labels

    incompatible-changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_greenteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions