mesonbuild / mesonbuild/mesonwrap

Mesonwrap crashing because path not found

Open
#149 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
26
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Mesonwrap gives me the following error:

```
(venv) lbcscme@LBCNB963:~/mesonwrap> mesonwrap review --pull-request 1 tclap
Traceback (most recent call last):
File "/home/lbcscme/mesonwrap/venv/bin/mesonwrap", line 33, in
sys.exit(load_entry_point('mesonwrap==0.2.0', 'console_scripts', 'mesonwrap')())
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/mesonwrap-0.2.0-py3.6.egg/mesonwrap/cli.py", line 28, in __init__
getattr(self, self.CMD_PREFIX + command)()
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/mesonwrap-0.2.0-py3.6.egg/mesonwrap/cli.py", line 60, in command_review
reviewtool.main(*self.args())
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/mesonwrap-0.2.0-py3.6.egg/mesonwrap/tools/reviewtool.py", line 386, in main
review, sha = r.review()
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/mesonwrap-0.2.0-py3.6.egg/mesonwrap/tools/reviewtool.py", line 117, in review
r = self.review_int(tmpdir)
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/mesonwrap-0.2.0-py3.6.egg/mesonwrap/tools/reviewtool.py", line 127, in review_int
branch=self._source_branch)) as head_repo:
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/GitPython-3.1.14-py3.6.egg/git/repo/base.py", line 1032, in clone_from
return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/GitPython-3.1.14-py3.6.egg/git/repo/base.py", line 980, in _clone
repo = cls(path, odbt=odbt)
File "/home/lbcscme/mesonwrap/venv/lib/python3.6/site-packages/GitPython-3.1.14-py3.6.egg/git/repo/base.py", line 130, in __init__
raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /tmp/tmpiij4ip7w/head
```

The problem affects current Master branch as well as ``2.6.0``.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mesonwrap/tools/reviewtool.py, especially review_int and the clone_from call shown in the traceback. Reproduce `mesonwrap review --pull-request 1 tclap` on the current Master branch or 2.6.0 and trace why `/tmp/.../head` is missing; done means the command no longer crashes with GitPython's NoSuchPathError.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.