当使用mbed-cli更新Mbed存储库时,我得到以下错误:
john@john-ThinkPad-Yoga-11e:~/Projects/myRepo$ mbed update
[mbed] Working path "/home/john/Projects/myRepo" (program)
[mbed] Updating program "myRepo" to latest revision in the current branch
[mbed] Updating library "mbed-os" to rev #c966348d3f9c (tag: mbed-os-5.11.1)
*** failed to import extension hggit from /path/to/hg-git: [Errno 2] No such file or directory: '/path/to/hg-git'
*** failed to import extension hggit from /path/to/hg-git: [Errno 2] No such file or directory: '/path/to/hg-git'我不想使用hg-git,并已尝试完全删除它。Mbed-cli使用Python,所以我尝试了各种Python工具来删除hg-git,但仍然收到错误。我甚至不确定这实际上是mbed-cli的错误,因为它出现在我知道是mbed一部分的内容之后(即以“mbed”开头的行)。我还试图在一个文件中找到错误的来源(使用'grep Ubuntu . -e "hg-git"'),但在Ubuntu上我还不能做到。
关于错误消息的来源和/或我如何摆脱它并完全删除hg-git,有什么想法吗?
发布于 2019-11-22 02:42:26
在Mercurial配置中,hggit扩展仍处于启用状态。
您可以通过运行以下命令显示设置配置的文件和行:hg config extensions.hggit --template '{source}\n'。
它可能会返回类似于/home/user/.hgrc:12的内容。在这种情况下,您必须删除或注释掉文件/home/user/.hgrc中的第12行,以禁用hggit扩展。
发布于 2019-07-17 01:15:03
使用apt命令删除hg-git
$ sudo apt remove hg-githttps://stackoverflow.com/questions/57062354
复制相似问题