Skip to content

Commit

Permalink
Fix out of bound error
Browse files Browse the repository at this point in the history
Some lines from nix-build output does not contains 3 words, leading to
out of bound.

Closes tweag#79
  • Loading branch information
guibou committed May 7, 2019
1 parent 38833b9 commit 3c304fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def _nixpkgs_package_impl(repository_ctx):
for line in exec_result.stderr.splitlines():
line = line.split(sep=' ')

# Interesting lines contains at least 3 words
if len(line) < 3:
continue

# Heuristic: a dependency is something which looks like:
# evaluating file FILE
# copied source FILE
Expand Down

0 comments on commit 3c304fd

Please sign in to comment.