-
Notifications
You must be signed in to change notification settings - Fork 7
/
transitive_workspace_setup.bzl
24 lines (16 loc) · 1.07 KB
/
transitive_workspace_setup.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Do not change the filename; it is part of the user interface.
load("@hedron_std_filesystem_backport//:workspace_setup.bzl", "hedron_backport_std_filesystem")
def hedron_keep_cc_https_easy():
"""Part 2 of setting up a WORKSPACE so you can easily make https requests from C++.
Sorry it can't be unified with hedron_make_cc_https_easy(). Bazel implementation restrictions.
"""
# Below the interface boundary:
# This is needed to get transitive dependencies of transitive dependencies--by calling their deps functions.
# Why?
# Bazel doesn't let you call a load except at the top level after v3 or so :/, so you have to resort to calling waves of workspace functions, one per each additional layer of transitive dependencies.
# For more info see:
# https://bazel.build/external/overview#shortcomings_of_the_workspace_system
# https://github.com/bazelbuild/bazel/issues/1550
# https://github.com/bazelbuild/bazel/issues/5815
# https://github.com/hedronvision/bazel-make-cc-https-easy/issues/14
hedron_backport_std_filesystem()