Bazel deprecated native http_archive rule
BillWSY opened this issue · 2 comments
BillWSY commented
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.
leighst commented
Is this project still being maintained? If I were to submit a patch would I be able to get it merged?
BillWSY commented
I think they have moved to http://github.com/stackb/rules_proto
But there is some issue with their py_proto_library rules and I haven't figured out how to deal with it...
My patch is here: https://github.com/CogRobRelease/rules_protobuf/tree/cogrob_patch