`nimble install docopt` not working
mallochine opened this issue · 10 comments
Hey,
Not completely sure if this is an issue, but I used the "nimble install docopt" command, copied from http://howistart.org/posts/nim/1
I got the following error:
[nutanix@guo-dev brainfuck]$ nimble install docopt
Downloading docopt into /tmp/nimble_3085/docopt using git...
Found tags...
Cloning latest tagged version: v0.1
Initialized empty Git repository in /tmp/nimble_3085/docopt/.git/
fatal: Couldn't find remote ref v0.1
FAILURE: Execution failed with exit code 128
It works for me on Windows. I can also see the v0.1
tag on the Git repo https://github.com/docopt/docopt.nim so I'm not sure what the problem is.
Can you clone that repo manually and checkout v0.1
?
Ah, so I'm actually on Linux...
I took a dive into the nimble source code and this is the exact shell command that is failing:
[nutanix@guo-dev docopt]$ git fetch origin --depth 1 v0.1
fatal: Couldn't find remote ref v0.1
Now if I simply do "git fetch origin", it still doesn't download anything:
[nutanix@guo-dev docopt]$ git fetch origin
remote: Counting objects: 115, done.
remote: Total 115 (delta 0), reused 0 (delta 0), pack-reused 115
Receiving objects: 100% (115/115), 32.25 KiB, done.
Resolving deltas: 100% (52/52), done.
From git://github.com/docopt/docopt.nim
* [new branch] master -> origin/master
From git://github.com/docopt/docopt.nim
* [new tag] v0.1 -> v0.1
[nutanix@guo-dev docopt]$ ls -a
. .. .git
Some more debug:
[nutanix@guo-dev docopt]$ git remote show origin
* remote origin
Fetch URL: git://github.com/docopt/docopt.nim
Push URL: git://github.com/docopt/docopt.nim
HEAD branch: master
Remote branch:
master tracked
[nutanix@guo-dev docopt]$ pwd
/tmp/nimble_2349/docopt
[nutanix@guo-dev docopt]$ git --version
git version 1.7.1
A helpful improvement for future nimble versions would be verbosity information that would ease log collecting as opposed to digging into the source code itself.
What's the version of git that you are using?
On Saturday, 7 March 2015, Alex Guo notifications@github.com wrote:
A helpful improvement for future nimble versions would be verbosity
information that would ease log collecting instead of digging into the
source code itself.—
Reply to this email directly or view it on GitHub
#105 (comment).
[nutanix@guo-dev docopt]$ git --version git version 1.7.1
Date: Sat, 7 Mar 2015 13:18:42 -0800
From: notifications@github.com
To: nimble@noreply.github.com
CC: aguo@andrew.cmu.edu
Subject: Re: [nimble] nimble install docopt
not working (#105)
What's the version of git that you are using?
On Saturday, 7 March 2015, Alex Guo notifications@github.com wrote:
A helpful improvement for future nimble versions would be verbosity
information that would ease log collecting instead of digging into the
source code itself.
—
Reply to this email directly or view it on GitHub
—
Reply to this email directly or view it on GitHub.
I'm using 1.9.5. Git 1.7.1 is pretty old I think. Can you upgrade?
Sure. I'm in the process of upgrading my git version. Update the README?
Looks like git 2.3.2 works. Thanks for your help! Do update the README once you can get to it, or maybe check for that in nimble compilation process?
Unfortunately i'm not sure what the lowest required version actually is.
I'll reopen this as a reminder to add something to the readme.