Skip to content
This repository was archived by the owner on Sep 10, 2026. It is now read-only.
This repository was archived by the owner on Sep 10, 2026. It is now read-only.

Bazel deprecated native http_archive rule #253

Description

@BillWSY

I am encountering the following error while using these rules:

ERROR: /root/.cache/bazel/_bazel_root/c0e7deb9b129a5010cb3923a06e5bde4/external/org_pubref_rules_protobuf/protobuf/internal/require.bzl:57:13: no such package '@com_google_protobuf//': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//external:protobuf_clib'
ERROR: /root/.cache/bazel/_bazel_root/c0e7deb9b129a5010cb3923a06e5bde4/external/org_pubref_rules_protobuf/protobuf/internal/require.bzl:57:13: no such package '@com_google_protobuf//': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//external:protocol_compiler'
ERROR: /root/.cache/bazel/_bazel_root/c0e7deb9b129a5010cb3923a06e5bde4/external/org_pubref_rules_protobuf/protobuf/internal/require.bzl:57:13: no such package '@com_google_protobuf//': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//external:protobuf_clib'

I believe we will need to load http.bzl in org_pubref_rules_protobuf/protobuf/internal/require.bzl for the latest Bazel version.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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