Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel deprecated native http_archive rule #253

Open
BillWSY opened this issue Dec 31, 2018 · 2 comments
Open

Bazel deprecated native http_archive rule #253

BillWSY opened this issue Dec 31, 2018 · 2 comments

Comments

@BillWSY
Copy link

BillWSY commented Dec 31, 2018

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
Copy link

leighst commented Jan 29, 2019

Is this project still being maintained? If I were to submit a patch would I be able to get it merged?

@BillWSY
Copy link
Author

BillWSY commented Jan 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants