Skip to content
New issue

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

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

Already on GitHub? # to your account

Missing .gitmodules breaks golang/dep #5

Closed
razorness opened this issue Oct 23, 2017 · 2 comments
Closed

Missing .gitmodules breaks golang/dep #5

razorness opened this issue Oct 23, 2017 · 2 comments

Comments

@razorness
Copy link

What version of dep are you using (dep version)?

go: go1.9.1 linux/amd64
dep: v0.3.2-4-g7b5c43aa
git: 2.14.2

What dep command did you run?

# dep ensure -v
Root project is "github.com/my/repo"
 8 transitively valid internal packages
 23 external packages imported from 16 projects
(0)   ✓ select (root)
...
(4)     ? attempt github.com/NYTimes/logrotate with 1 pkgs; at least 1 versions to try
(4)         try github.com/NYTimes/logrotate@master
(4)     ✓ select github.com/NYTimes/logrotate@master w/1 pkgs
(5)     ? attempt github.com/aymerick/raymond with 1 pkgs; at least 1 versions to try
(5)         try github.com/aymerick/raymond@v2.0.1
(5)     ✓ select github.com/aymerick/raymond@v2.0.1 w/4 pkgs
(6)     ? attempt github.com/adam-hanna/sessions with 5 pkgs; at least 1 versions to try
(6)         try github.com/adam-hanna/sessions@v0.0.2
(6)     ✗   unexpected error while defensively updating submodules: : command failed: [git submodule update --init --recursive]: exit status 128
(6)         try github.com/adam-hanna/sessions@v0.0.1
(7)     ✗   github.com/adam-hanna/sessions@v0.0.1 not allowed by constraint ^0.0.2:
(7)         ^0.0.2 from (root)
(6)         try github.com/adam-hanna/sessions@master
(7)     ✗   github.com/adam-hanna/sessions@master not allowed by constraint ^0.0.2:
(7)         ^0.0.2 from (root)
(6)         try github.com/adam-hanna/sessions@develop
(7)     ✗   github.com/adam-hanna/sessions@develop not allowed by constraint ^0.0.2:
(7)         ^0.0.2 from (root)
(6)       ← no more versions of github.com/adam-hanna/sessions to try; begin backtrack
(5)     ← backtrack: no more versions of github.com/aymerick/raymond to try
(4)     ← backtrack: no more versions of github.com/NYTimes/logrotate to try
...
  ✗ solving failed

Solver wall times by segment:
     b-source-exists: 3.913478065s
         b-list-pkgs: 1.286524935s
              b-gmal: 218.790765ms
             satisfy:   1.505631ms
            new-atom:   1.238137ms
           backtrack:   1.062701ms
         select-root:    909.949µs
         select-atom:     643.78µs
            unselect:    335.459µs
  b-deduce-proj-root:     89.125µs
          b-pair-rev:     85.236µs
     b-list-versions:     23.727µs
           b-matches:     15.354µs
               other:      9.864µs

  TOTAL: 5.424712728s

ensure Solve(): No versions of github.com/adam-hanna/sessions met constraints:
        v0.0.2: unexpected error while defensively updating submodules: : command failed: [git submodule update --init --recursive]: exit status 128
        v0.0.1: Could not introduce github.com/adam-hanna/sessions@v0.0.1, as it is not allowed by constraint ^0.0.2 from project github.com/my/repo.
        master: Could not introduce github.com/adam-hanna/sessions@master, as it is not allowed by constraint ^0.0.2 from project github.com/my/repo.
        develop: Could not introduce github.com/adam-hanna/sessions@develop, as it is not allowed by constraint ^0.0.2 from project github.com/my/repo.

What did you expect to see?

Working vendor checkout.

What did you see instead?

The reason is missing .gitmodules.
After cloning your repo by hand and executing git submodule update --init --recursive you get:

# git submodule update --init --recursive
fatal: No url found for submodule path 'vendor/github.com/pborman/uuid' in .gitmodules
# echo $?
128

Is there any reason for skipping .gitmodules?

@adam-hanna
Copy link
Owner

adam-hanna commented Oct 23, 2017 via email

@adam-hanna
Copy link
Owner

Ok, it was an issue with a vendor'd dep. I think it should be fixed now!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants