load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_marpaia_alpaca_trade_api_cpp",
strip_prefix = "alpaca-trade-api-cpp-master",
urls = ["https://github.com/marpaia/alpaca-trade-api-cpp/archive/master.tar.gz"],
)
load("@com_github_marpaia_alpaca_trade_api_cpp//bazel:deps.bzl", "alpaca_deps")
alpaca_deps()
DEBUG: Rule 'com_github_marpaia_alpaca_trade_api_cpp' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "856e4a05cf41c8d1f669db45e8bd56ef7b7bc485355ea7e836035af4842817a2"
DEBUG: Repository com_github_marpaia_alpaca_trade_api_cpp instantiated at:
/home/christopher/prog/cpp/eve2/WORKSPACE:3:13: in <toplevel>
Repository rule http_archive defined at:
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Repository com_github_unetworking_uwebsockets instantiated at:
/home/christopher/prog/cpp/eve2/WORKSPACE:9:12: in <toplevel>
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/com_github_marpaia_alpaca_trade_api_cpp/bazel/deps.bzl:83:21: in alpaca_deps
Repository rule http_archive defined at:
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Repository 'com_github_unetworking_uwebsockets' used the following cache hits instead of downloading the corresponding file.
* Hash '663a22b521c8258e215e34e01c7fcdbbd500296aab2c31d36857228424bb7675' for https://github.com/uNetworking/uWebSockets/archive/v0.14.8.tar.gz
If the definition of 'com_github_unetworking_uwebsockets' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'com_github_unetworking_uwebsockets':
Traceback (most recent call last):
File "/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl", line 120, column 28, in _http_archive_impl
workspace_and_buildfile(ctx)
File "/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 58, column 41, in workspace_and_buildfile
ctx.file("BUILD.bazel", ctx.read(ctx.attr.build_file))
Error in read: Unable to load package for //bazel/third_party/uwebsockets:BUILD: BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/christopher/prog/cpp/eve2/bazel/third_party/uwebsockets
ERROR: Error fetching repository: Traceback (most recent call last):
File "/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl", line 120, column 28, in _http_archive_impl
workspace_and_buildfile(ctx)
File "/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 58, column 41, in workspace_and_buildfile
ctx.file("BUILD.bazel", ctx.read(ctx.attr.build_file))
Error in read: Unable to load package for //bazel/third_party/uwebsockets:BUILD: BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/christopher/prog/cpp/eve2/bazel/third_party/uwebsockets
INFO: Repository com_github_yhirose_cpp_httplib instantiated at:
/home/christopher/prog/cpp/eve2/WORKSPACE:9:12: in <toplevel>
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/com_github_marpaia_alpaca_trade_api_cpp/bazel/deps.bzl:45:21: in alpaca_deps
Repository rule http_archive defined at:
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Repository com_github_google_boringssl instantiated at:
/home/christopher/prog/cpp/eve2/WORKSPACE:9:12: in <toplevel>
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/com_github_marpaia_alpaca_trade_api_cpp/bazel/deps.bzl:55:21: in alpaca_deps
Repository rule http_archive defined at:
/home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: /home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/com_github_marpaia_alpaca_trade_api_cpp/alpaca/BUILD:3:11: @com_github_marpaia_alpaca_trade_api_cpp//alpaca:alpaca depends on @com_github_unetworking_uwebsockets//:uwebsockets in repository @com_github_unetworking_uwebsockets which failed to fetch. no such package '@com_github_unetworking_uwebsockets//': Unable to load package for //bazel/third_party/uwebsockets:BUILD: BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/christopher/prog/cpp/eve2/bazel/third_party/uwebsockets
ERROR: Analysis of target '//src:main' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.798s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
Fetching @com_github_tencent_rapidjson; fetching
Fetching ...idjson; Extracting /home/christopher/.cache/bazel/_bazel_christopher/6f248f731ec5030a6b7570c92efc53dd/external/com_github_tencent_rapidjson/temp17542727\
275593451699/v1.1.0.tar.gz
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_marpaia_alpaca_trade_api_cpp",
strip_prefix = "alpaca-trade-api-cpp-0.0.3",
urls = ["https://github.com/marpaia/alpaca-trade-api-cpp/archive/v0.0.3.tar.gz"],
sha256 = "db9efe3dc92f4e1d7eb69d76cb807af6bcf61ea14fe73f30e22830002b34f81a",
)
load("@com_github_marpaia_alpaca_trade_api_cpp//bazel:deps.bzl", "alpaca_deps")
alpaca_deps()
in my workspace file. I can't use 0.0.3 because I need the Client::getLastTrade function which is not present in that version. Any advice for how to fix this problem?