googleapis / googleapis/google-cloud-cpp

Support new versions of Bazel that don't provide cc_library by default

オープン
#16,128 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
type: cleanup
主要言語
C++
スター
659
フォーク
462
平均マージ
1日 2時間
マージ済み PR(30日)
89

説明

Recent versions of Bazel don't provide `cc_library` and friends by default. That causes an error if you try to link against google-cloud-cpp without `--incompatible_autoload_externally=true`:

```
File "/.../external/google_cloud_cpp+/BUILD.bazel", line 37, column 12, in
[cc_library(
File "/virtual_builtins_bzl/bazel/exports.bzl", line 40, column 9, in _removed_rule_failure
Error in fail:
This rule has been removed from Bazel. Please add a `load()` statement for it.
This can also be done automatically by running:
buildifier --lint=fix
```

I didn't see an existing tracking bug for this, so filing one now. (Feel free to dup, though, if I just missed it!)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

external/google_cloud_cpp+/BUILD.bazel の37行目から始め、--incompatible_autoload_externally=true なしの最近の Bazel バージョンを使って失敗を再現してください。cc_library と関連するルールに対する Bazel の読み込み要件を確認してください。google-cloud-cpp がその互換性フラグなしで正常に configure または build できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
62/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。