Open Napoleon-BlownApart opened 4 years ago
Sorry for the very slow response. Any chance you could share the repo you used to reproduce this?
No problem. It's been so long that I need to refresh my memory of what this was about. It might take a couple weeks before I get a chance to dive into it, got a lot on right now, but I will come back to it.
Not sure if it's the same cause, but the error is the same as in issue #107. Does the repo contain submodules by any chance?
I tried it in a repo without submodules, and I'm getting the following message:
user@host:[21:44]$ git deps --serve
fatal: 'deps' appears to be a git command, but we were not
able to execute it. Maybe git-deps is broken?
~/Programming/LISP/config ((5e63142...)~*%)
I'm afraid it's been so long now that I can't even recall exactly how I installed etc.
That does look an installation issue, agreed.
Even if you cannot reproduce the git-deps call, do you know what ID 5668198989e66aa87478ba3c9f5102639485e3c2
refers to in your above repo in terms of git objects?
going through my bash history, it appears that I tried to use the command on one of my repos. When it didn't work, I created a fresh repo and tried it there. I think that hash is from that repo, which I have since deleted.
When I use git deps master
I get the following message:
fatal: 'deps' appears to be a git command, but we were not
able to execute it. Maybe git-deps is broken?
When I try using git-deps master
:
-bash: /usr/local/bin/git-deps: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
/usr/local/bin/git-deps
has a shbang #!/usr/local/opt/python/bin/python3.7
but I don't a python version there.
I changed the shbang to point to a /usr/local/bin/python3
(which on my system is v3.9.6), and git-deps master
now returns:
Traceback (most recent call last):
File "/usr/local/bin/git-deps", line 6, in <module>
from git_deps.cli import run
ModuleNotFoundError: No module named 'git_deps'
Have you tried reinstalling git-deps
? The mismatch you are seeing in the python version might mean that the git_deps
module is installed in a (python-version-specific) path that is not used by your environment. I.e., if it's from a previous installation, the git_deps
module might be installed in a python3.7- and not python3.9-specific path.
[MacOS 10.14.5, Installed libgit2 using homebrew, and git-deps using pip3]
Nice idea, and the visualisation reduces the cognitive load associated with understanding the dependency graph.
However, whilst this tool works fine with an example similar to that in the video, I'm getting an error when running it against our real repository at Uni. The error messages below occur when accessing the same repository via the browser and using the CLI.) Any suggestions on how to fix this?
git deps --serve (GUI)
git deps master (CLI)