dep ensure add is really slow

Created on 9 May 2018  ·  4Comments  ·  Source: golang/dep

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

jaes-MacBook-Pro:~ jaeraam$ dep version
dep:
 version     : v0.4.1
 build date  : 2018-01-27
 git hash    : 37d9ea0
 go version  : go1.9.3
 go compiler : gc
 platform    : darwin/amd64
jaes-MacBook-Pro:~ jaeraam$ 

How did I installed dep

brew install dep

What dep command did you run?

dep ensure -v -add github.com/aws/aws-sdk-go

What did you expect to see?

dep should install the dependency quickly

What did you see instead?

The installation stuck and taking long time to install

jaes-MacBook-Pro:dev jaeraam$ dep ensure -v -add github.com/aws/aws-sdk-go
Fetching sources...
(1/1) github.com/aws/aws-sdk-go

Other informations

OS: Darwin jaes-MacBook-Pro.local 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64

GO: go version go1.10.2 darwin/amd64

Most helpful comment

Still have this issue.

# Gopkg.lock is out of sync with Gopkg.toml and project imports:
github.com/go-ozzo/ozzo-validation: imported or required, but missing from Gopkg.lock's input-imports
github.com/go-ozzo/ozzo-validation/is: imported or required, but missing from Gopkg.lock's input-imports
github.com/golang/protobuf/proto: imported or required, but missing from Gopkg.lock's input-imports
github.com/jinzhu/gorm: imported or required, but missing from Gopkg.lock's input-imports
github.com/jinzhu/gorm/dialects/postgres: imported or required, but missing from Gopkg.lock's input-imports
github.com/smithaitufe/apartmentanywhere/utility: imported or required, but missing from Gopkg.lock's input-imports
golang.org/x/net/context: imported or required, but missing from Gopkg.lock's input-imports
google.golang.org/grpc: imported or required, but missing from Gopkg.lock's input-imports

^CSignal received: waiting for 1 ops to complete...
Root project is "github.com/smithaitufe/apartmentanywhere/listing"
 2 transitively valid internal packages
 8 external packages imported from 6 projects
(0)   ✓ select (root)
(1)       ← no more versions of github.com/smithaitufe/apartmentanywhere to try; begin backtrack
  ✗ solving failed

Solver wall times by segment:
     b-list-versions: 20m52.841651695s
         select-root:        329.886µs
  b-deduce-proj-root:         50.527µs
               other:         44.753µs
            new-atom:          1.303µs
     b-source-exists:            597ns

  TOTAL: 20m52.842078761s
dep:
 version     : v0.5.0
 build date  : 2018-07-26
 git hash    : 224a564
 go version  : go1.10.3
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

All 4 comments

After waiting long time I got the response

Root project is "bitbucket.org/testing/dev"
 1 transitively valid internal packages
 1 external packages imported from 1 projects
(0)   ✓ select (root)
(1)     ? attempt github.com/aws/aws-sdk-go with 1 pkgs; 400 versions to try
(1)         try github.com/aws/[email protected]
(1)     ✓ select github.com/aws/[email protected] w/1 pkgs
  ✓ found solution with 1 packages from 1 projects

Solver wall times by segment:
      b-list-pkgs: 486.479185ms
           b-gmal: 297.709065ms
      select-atom:   19.12713ms
          satisfy:  15.808574ms
  b-list-versions:    743.649µs
         new-atom:     413.94µs
      select-root:     120.34µs
            other:     16.595µs
  b-source-exists:      2.259µs

  TOTAL: 820.420737ms

(1/1) Wrote github.com/aws/[email protected]
"github.com/aws/aws-sdk-go" is not imported by your project, and has been temporarily added to Gopkg.lock and vendor/.
If you run "dep ensure" again before actually importing it, it will disappear from Gopkg.lock and vendor/.

but nothing installed on any of my $GOPATH's or vendor directory

use http_proxy but fail

Solver wall times by segment:
     b-list-versions: 20m0.050941048s
              b-gmal:      49.40949ms
         b-list-pkgs:     46.631565ms
     b-source-exists:        5.6882ms
         select-root:       397.331µs
            new-atom:        92.486µs
         select-atom:        83.213µs
            unselect:        42.387µs
             satisfy:        38.217µs
               other:        27.271µs
  b-deduce-proj-root:        21.525µs
           backtrack:         6.651µs

resolved,cause of proxy

Still have this issue.

# Gopkg.lock is out of sync with Gopkg.toml and project imports:
github.com/go-ozzo/ozzo-validation: imported or required, but missing from Gopkg.lock's input-imports
github.com/go-ozzo/ozzo-validation/is: imported or required, but missing from Gopkg.lock's input-imports
github.com/golang/protobuf/proto: imported or required, but missing from Gopkg.lock's input-imports
github.com/jinzhu/gorm: imported or required, but missing from Gopkg.lock's input-imports
github.com/jinzhu/gorm/dialects/postgres: imported or required, but missing from Gopkg.lock's input-imports
github.com/smithaitufe/apartmentanywhere/utility: imported or required, but missing from Gopkg.lock's input-imports
golang.org/x/net/context: imported or required, but missing from Gopkg.lock's input-imports
google.golang.org/grpc: imported or required, but missing from Gopkg.lock's input-imports

^CSignal received: waiting for 1 ops to complete...
Root project is "github.com/smithaitufe/apartmentanywhere/listing"
 2 transitively valid internal packages
 8 external packages imported from 6 projects
(0)   ✓ select (root)
(1)       ← no more versions of github.com/smithaitufe/apartmentanywhere to try; begin backtrack
  ✗ solving failed

Solver wall times by segment:
     b-list-versions: 20m52.841651695s
         select-root:        329.886µs
  b-deduce-proj-root:         50.527µs
               other:         44.753µs
            new-atom:          1.303µs
     b-source-exists:            597ns

  TOTAL: 20m52.842078761s
dep:
 version     : v0.5.0
 build date  : 2018-07-26
 git hash    : 224a564
 go version  : go1.10.3
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ankitm123 picture ankitm123  ·  28Comments

mastoj picture mastoj  ·  29Comments

kardianos picture kardianos  ·  43Comments

avelino picture avelino  ·  25Comments

sdboyer picture sdboyer  ·  26Comments