I get following error while trying to use bazel repository as external dependency
ERROR: ~/.cache/bazel/_bazel_noone/ae6e9d00e8c783d8279db324d79ccc60/external/org_deepmind_lab/BUILD:432:1: no such package '@zlib_archive//': error loading package 'external': The repository named 'zlib_archive' could not be resolved and referenced by '@org_deepmind_lab//:bspc'.
ERROR: Analysis of target '//:random_agent' failed; build aborted.
INFO: Elapsed time: 13.452s
`
$tree
my-project
├── BUILD
├── python.BUILD
├── random_agent.py
└── WORKSPACE
0 directories, 4 files
$cat WORKSPACE
workspace(name = "maze_a3c")
new_local_repository(
name = "python_system",
build_file = "python.BUILD",
path = "/usr",
)
git_repository(
name = "org_deepmind_lab",
remote = "
https://github.com/deepmind/lab.git",
commit = "9af8f87376c3418dd40ade46465d677c0b96f39e"
$cat BUILD
py_binary(
name = "random_agent",
srcs = ["random_agent.py"],
data = ["@org_deepmind_lab//:deepmind_lab.so"],
main = "random_agent.py",
`
Kindly suggest what is the correct way to add bazel repository as external dependency and also correctly build it.