-
Notifications
You must be signed in to change notification settings - Fork 373
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
feat: avoid development dependencies with Bazel #11724
feat: avoid development dependencies with Bazel #11724
Conversation
bazel/google_cloud_cpp_deps.bzl
Outdated
@@ -17,8 +17,63 @@ | |||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") | |||
|
|||
def google_cloud_cpp_development_deps(name = None): | |||
"""Loads dependencies need to develop the google-cloud-cpp libraries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/need/needed/
bazel/google_cloud_cpp_deps.bzl
Outdated
|
||
google-cloud-cpp developers call this function from the top-level WORKSPACE | ||
file to obtain all the necessary *development* dependencies for | ||
google-cloud-cpp, this includes testing dependencies and dependencies used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/, this/. This/
bazel/google_cloud_cpp_deps.bzl
Outdated
google-cloud-cpp, this includes testing dependencies and dependencies used | ||
by development tools. | ||
|
||
While primarily intended for google-cloud-cpp developers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
bazel/google_cloud_cpp_deps.bzl
Outdated
@@ -66,7 +121,8 @@ def google_cloud_cpp_deps(name = None): | |||
strip_prefix = "abseil-cpp-20230125.3", | |||
) | |||
|
|||
# Load a version of googletest that we know works. | |||
# Load a version of googletest that we know works. This is needed to create | |||
# google_cloud_cpp_*_mocks libraries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: //:*_mocks
instead of google_cloud_cpp_*_mocks
?
(and we just pretend that //:mocks
matches the regex)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #11724 +/- ##
=======================================
Coverage ? 93.78%
=======================================
Files ? 1829
Lines ? 164882
Branches ? 0
=======================================
Hits ? 154631
Misses ? 10251
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Adapt to the new shape of google_cloud_cpp_deps.bzl, where googleapis#11724 introduced an additional `maybe()` calling function.
This change is