step 1: fetch all remotes: $ bazel sync
$ bazel query 'kind(local_repository, //external:*)'
$ bazel query 'kind(http_archive, //external:*)'
$ bazel query 'kind(., //external:)'
$ ls $(bazel info output_base)/external/
-
add
coq_repository
orocaml_repository
rules to WORKSPACE.bazel. Omit thestrip_prefix
andsha256
attributes. -
$ bazel fetch @the_repo//...
-
ls $(bazel info output_base)/external/the_repo
- this will show what is needed forstrip_prefix
. add it to the *_repository rule. -
step 2 will also show the sha256 for the downloaded file; add the attribute