New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel uses incorrect local path installing dependency #37

Closed
gradha opened this Issue Apr 28, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@gradha
Contributor

gradha commented Apr 28, 2014

Installation of the dropbox_filename_sanitizer package will fail with the following command:

$ babel install dropbox_filename_sanitizer

If previous to the installation any existing packages of the argument_parser package are removed from ~/.babel/pkgs. The full command sequence to reproduce would be then:

$ rm -Rf ~/.babel/pkgs/argument_parser*
$ babel install -y dropbox_filename_sanitizer

Babel will see the requirement for the main program to mention version 1.2 and uses that version instead of whatever version is obtained through the git checkout of that package. Then it fails during verification. The error message is strange (it mentions twice the nake package). Here is the full log:

[0:gradha@amber.local:0] [~]$ rm -Rf ~/.babel/pkgs/argument_parser*
[0:gradha@amber.local:0] [~]$ babel install -y dropbox_filename_sanitizer
Downloading dropbox_filename_sanitizer into /tmp/babel/dropbox_filename_sanitizer using git...
Found tags...
Cloning latest tagged version: v0.4.0
Cloning into '/tmp/babel/dropbox_filename_sanitizer'...
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 18 (delta 0), reused 13 (delta 0)
Receiving objects: 100% (18/18), 10.73 KiB | 0 bytes/s, done.
Checking connectivity... done.
Note: checking out 'b42c46b56477951a75dc89afad70788e7cd55380'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

Installing dropbox_filename_sanitizer-0.4.0
Looking for nake (>= 1.2)...
Dependency already satisfied.
Looking for argument_parser (>= 0.1.2)...
None found, installing...
Downloading argument_parser into /tmp/babel/argument_parser_0.1.2 using git...
Found tags...
Cloning latest tagged version: v0.2.0
Cloning into '/tmp/babel/argument_parser_0.1.2'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 23 (delta 1), reused 13 (delta 0)
Receiving objects: 100% (23/23), 21.66 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
Note: checking out '531ea03fe7f85b048e02a45eb2b241bb1c494dd3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

Installing argument_parser-0.2.0
Looking for nake (>= 1.0)...
Dependency already satisfied.
/tmp/babel/argument_parser_0.1.2/LICENSE.rst -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/LICENSE.rst
/tmp/babel/argument_parser_0.1.2/README.rst -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/README.rst
/tmp/babel/argument_parser_0.1.2/argument_parser.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/argument_parser.nim
/tmp/babel/argument_parser_0.1.2/docindex.rst -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/docindex.rst
/tmp/babel/argument_parser_0.1.2/docs/changes.rst -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/docs/changes.rst
/tmp/babel/argument_parser_0.1.2/examples/ex_cp.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/examples/ex_cp.nim
/tmp/babel/argument_parser_0.1.2/examples/ex_git.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/examples/ex_git.nim
/tmp/babel/argument_parser_0.1.2/examples/ex_mkdir.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/examples/ex_mkdir.nim
/tmp/babel/argument_parser_0.1.2/examples/ex_wget.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/examples/ex_wget.nim
/tmp/babel/argument_parser_0.1.2/examples/nimrod.cfg -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/examples/nimrod.cfg
/tmp/babel/argument_parser_0.1.2/nakefile.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/nakefile.nim
/tmp/babel/argument_parser_0.1.2/nakefile.nimrod.cfg -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/nakefile.nimrod.cfg
/tmp/babel/argument_parser_0.1.2/tests/code_test.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/tests/code_test.nim
/tmp/babel/argument_parser_0.1.2/tests/help_generation.nim -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/tests/help_generation.nim
/tmp/babel/argument_parser_0.1.2/tests/nimrod.cfg -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/tests/nimrod.cfg
/tmp/babel/argument_parser_0.1.2/argument_parser.babel -> /Users/gradha/.babel/pkgs/argument_parser-0.2.0/argument_parser.babel
argument_parser installed successfully.
FAILURE: Cannot satisfy the dependency on nake 1.2 and nake 1.2
[1:gradha@amber.local:0] [~]$ ls /tmp/babel/
argument_parser_0.1.2       dropbox_filename_sanitizer
[0:gradha@amber.local:0] [~]$ 

After this error running again the command to install the package will succeed since the argument_parser module is already installed so no download has to be done.

@dom96 dom96 closed this in 66027f9 Jun 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment