Skip to content

Instantly share code, notes, and snippets.

@Kiwi
Created September 22, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwi/b36e78849c3064eda892180c8690194b to your computer and use it in GitHub Desktop.
Save Kiwi/b36e78849c3064eda892180c8690194b to your computer and use it in GitHub Desktop.
nix-review errors
20:59:13 [kiwi@mvp-nixos nixpkgs]$ nix-review wip
$ git fetch --force https://github.com/NixOS/nixpkgs master:refs/nix-review/0
$ git worktree add /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs ac6521cdc93f0ae631dec9d669eceb26b6899adb
Preparing worktree (detached HEAD ac6521cdc93)
Updating files: 100% (19855/19855), done.
error: update_ref failed for ref 'ORIG_HEAD': could not read ref 'ORIG_HEAD'
HEAD is now at ac6521cdc93 libipt: set platforms to unix
$ nix-env -f /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs -qaP --xml --out-path --show-trace
error: while evaluating 'callPackageWith' at /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/lib/customisation.nix:108:35, called from /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/pkgs/top-level/all-packages.nix:20181:13:
while evaluating 'makeOverridable' at /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/lib/customisation.nix:67:24, called from /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/lib/customisation.nix:112:8:
while evaluating anonymous function at /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/pkgs/applications/networking/irc/quassel/default.nix:1:1, called from /home/kiwi/.cache/nix-review/rev-760b677c19ba6b1e6988e72c912270a561516939-dirty-1/nixpkgs/lib/customisation.nix:69:12:
value is a set while a Boolean was expected
$ git worktree prune
Traceback (most recent call last):
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/bin/.nix-review-wrapped", line 11, in <module>
sys.exit(main())
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/__init__.py", line 10, in main
cli.main(command, args)
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/cli/__init__.py", line 143, in main
args.func(args)
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/cli/wip.py", line 9, in wip_command
"rev-%s-dirty" % verify_commit_hash("HEAD"), args, None, args.staged
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/review.py", line 266, in review_local_revision
review.review_commit(args.branch, commit, staged)
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/review.py", line 145, in review_commit
self.start_review(self.build_commit(branch_rev, reviewed_commit, staged))
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/review.py", line 82, in build_commit
base_packages = list_packages(str(self.worktree_dir()))
File "/nix/store/2xs3vwl50znra197yidikf0md4kswla3-nix-review-2.0.1/lib/python3.7/site-packages/nix_review/review.py", line 160, in list_packages
for (event, elem) in context:
File "/nix/store/h6ca7b9k0zmw71ay1q7iq28g08r1i8ji-python3-3.7.4/lib/python3.7/xml/etree/ElementTree.py", line 1228, in iterator
root = pullparser._close_and_return_root()
File "/nix/store/h6ca7b9k0zmw71ay1q7iq28g08r1i8ji-python3-3.7.4/lib/python3.7/xml/etree/ElementTree.py", line 1275, in _close_and_return_root
root = self._parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
21:00:11 [kiwi@mvp-nixos nixpkgs]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment