Skip to content

Commit

Permalink
fix "error: cannot find flake 'flake:None' in the flake registries"
Browse files Browse the repository at this point in the history
Culprit found with:

```
python -m trace --ignore-dir "$(python -c 'import os, sys; print(os.pathsep.join(sys.path[1:]))')" -t $NIXGITS/nixpkgs-review/result/bin/.nixpkgs-review-wrapped pr 261631
```

from the comments of https://stackoverflow.com/a/33449763.

`nix log` had `None^*` as the path.
  • Loading branch information
Artturin committed Oct 17, 2023
1 parent 1a9131b commit 70a421b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixpkgs_review/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def write_error_logs(attrs: list[Attr], directory: Path) -> None:
results = LazyDirectory(directory.joinpath("results"))
failed_results = LazyDirectory(directory.joinpath("failed_results"))
for attr in attrs:
if attr.blacklisted:
# Broken attrs have no drv_path.
if attr.blacklisted or attr.drv_path is None:
continue

if attr.path is not None and os.path.exists(attr.path):
Expand Down

0 comments on commit 70a421b

Please sign in to comment.