Skip to content

Commit

Permalink
Tweak failed parsing logic (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
simontoens authored Feb 28, 2024
1 parent cd175bd commit 4146e93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crawl/bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,14 @@ def _parse_pinned(mvn_install_name, pinned_file_path, verbose=False):
direct_dep_coords_wo_vers = direct_deps_json.get(coord_wo_vers, [])
dep.directs = _get_direct_deps(direct_dep_coords_wo_vers,
coord_wo_vers_to_dep, mvn_install_name,
verbose, False)
if len(dep.directs):
verbose, fail_on_missing=False)
if len(dep.directs) == 0:
# something failed. rerun but this time with more logging
# and mark it to blow up when it hits the failure
dep.directs = _get_direct_deps(direct_dep_coords_wo_vers,
coord_wo_vers_to_dep, mvn_install_name,
True, True)
coord_wo_vers_to_dep,
mvn_install_name, verbose=True,
fail_on_missing=True)

return coord_wo_vers_to_dep.values()

Expand Down

0 comments on commit 4146e93

Please sign in to comment.