Skip to content
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

dep ensure is broken #155

Closed
MrHohn opened this issue Mar 19, 2018 · 2 comments
Closed

dep ensure is broken #155

MrHohn opened this issue Mar 19, 2018 · 2 comments
Assignees

Comments

@MrHohn
Copy link
Member

MrHohn commented Mar 19, 2018

In the middle of updating vendor, found dep ensure is already broken without any modification to codes:

k8s.io/ingress-gce$ dep ensure -v
Warning: the following project(s) have [[constraint]] stanzas in Gopkg.toml:
                                                                                  
  ✗  github.com/docker/distribution            
  ✗  github.com/opencontainers/go-digest                 
  ✗  github.com/spf13/pflag                                                        
                                                
However, these projects are not direct dependencies of the current project:
they are not imported in any .go files, nor are they in the 'required' list in        
Gopkg.toml. Dep only applies [[constraint]] rules to direct dependencies, so         
these rules will have no effect.                                                               
                                                                           
Either import/require packages from these projects so that they become direct
dependencies, or convert each [[constraint]] to an [[override]] to enforce rules
on these projects, if they happen to be transitive dependencies,        
                                     
Root project is "k8s.io/ingress-gce"
 23 transitively valid internal packages
 41 external packages imported from 8 projects
(0)   ✓ select (root)
(1)     ? attempt github.com/golang/glog with 1 pkgs; at least 1 versions to try
(1)         try github.com/golang/glog@23def4e6c14b4da8ac2ed8007337bc5eb5007998
(1)     ✓ select github.com/golang/glog@23def4e6c14b4da8ac2ed8007337bc5eb5007998 w/1 pkgs
(2)     ? attempt github.com/gorilla/websocket with 1 pkgs; at least 1 versions to try
(2)         try github.com/gorilla/websocket@v1.2.0
(2)     ✓ select github.com/gorilla/websocket@v1.2.0 w/1 pkgs
(3)     ? attempt github.com/prometheus/client_golang with 1 pkgs; at least 1 versions to try
(3)         try github.com/prometheus/client_golang@v0.8.0
(3)     ✓ select github.com/prometheus/client_golang@v0.8.0 w/2 pkgs
(4)     ? attempt github.com/beorn7/perks with 1 pkgs; at least 1 versions to try
(4)         try github.com/beorn7/perks@master
(4)     ✓ select github.com/beorn7/perks@master w/1 pkgs
(5)     ? attempt github.com/prometheus/client_model with 1 pkgs; at least 1 versions to try
(5)         try github.com/prometheus/client_model@master
(5)     ✓ select github.com/prometheus/client_model@master w/1 pkgs
(6)     ? attempt github.com/golang/protobuf with 1 pkgs; at least 1 versions to try
(6)         try github.com/golang/protobuf@master
(6)     ✓ select github.com/golang/protobuf@master w/1 pkgs
(7)     ? attempt github.com/prometheus/common with 2 pkgs; at least 1 versions to try
(7)         try github.com/prometheus/common@master
(7)     ✓ select github.com/prometheus/common@master w/3 pkgs
(8)     ? attempt github.com/matttproud/golang_protobuf_extensions with 1 pkgs; at least 1 versions to try
(8)         try github.com/matttproud/golang_protobuf_extensions@v1.0.0
(8)     ✓ select github.com/matttproud/golang_protobuf_extensions@v1.0.0 w/1 pkgs
(9)     ? attempt k8s.io/kubernetes with 6 pkgs; at least 1 versions to try
(9)         try k8s.io/kubernetes@7652c252d4ce2aea1563853bef0438769c5781fd
(9)     ✓ select k8s.io/kubernetes@7652c252d4ce2aea1563853bef0438769c5781fd w/41 pkgs
(10)  ? revisit github.com/prometheus/client_golang to add 1 pkgs
(10)    ✓ include 1 more pkgs from github.com/prometheus/client_golang@v0.8.0
(10)  ? attempt cloud.google.com/go with 1 pkgs; at least 1 versions to try
(11)      try cloud.google.com/go@v0.17.0
(11)  ✓ select cloud.google.com/go@v0.17.0 w/1 pkgs
(11)  ? attempt github.com/davecgh/go-spew with 1 pkgs; at least 1 versions to try
(12)      try github.com/davecgh/go-spew@v1.1.0
(12)  ✓ select github.com/davecgh/go-spew@v1.1.0 w/1 pkgs
(12)  ? attempt github.com/dgrijalva/jwt-go with 1 pkgs; at least 1 versions to try
(13)      try github.com/dgrijalva/jwt-go@v3.1.0
(13)  ✓ select github.com/dgrijalva/jwt-go@v3.1.0 w/1 pkgs
(13)  ? attempt github.com/docker/distribution with 1 pkgs; at least 1 versions to try
(14)      try github.com/docker/distribution@edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c
(14)  ✓ select github.com/docker/distribution@edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c w/2 pkgs
(14)  ? attempt golang.org/x/oauth2 with 2 pkgs; at least 1 versions to try
(15)      try golang.org/x/oauth2@master
(15)  ✓ select golang.org/x/oauth2@master w/5 pkgs
(15)  ? attempt golang.org/x/net with 2 pkgs; at least 1 versions to try
(16)      try golang.org/x/net@master
(16)  ✓ select golang.org/x/net@master w/2 pkgs
(16)  ? attempt github.com/prometheus/procfs with 1 pkgs; at least 1 versions to try
(17)      try github.com/prometheus/procfs@master
(17)  ✓ select github.com/prometheus/procfs@master w/2 pkgs
(17)  ? attempt github.com/golang/groupcache with 1 pkgs; at least 1 versions to try
(18)      try github.com/golang/groupcache@master
(18)  ✓ select github.com/golang/groupcache@master w/1 pkgs
(18)  ? attempt google.golang.org/api with 2 pkgs; at least 1 versions to try
(19)      try google.golang.org/api@373a4c220f5c90e5b7ff7101779c5be385d171be
(19)  ✓ select google.golang.org/api@373a4c220f5c90e5b7ff7101779c5be385d171be w/5 pkgs
(20)    ← no more versions of k8s.io/apiextensions-apiserver to try; begin backtrack
(19)  ← backtrack: no more versions of google.golang.org/api to try
(18)  ← backtrack: no more versions of github.com/golang/groupcache to try
(17)  ← backtrack: no more versions of github.com/prometheus/procfs to try
(16)  ← backtrack: no more versions of golang.org/x/net to try
(15)  ← backtrack: no more versions of golang.org/x/oauth2 to try
(14)  ← backtrack: no more versions of github.com/docker/distribution to try
(13)  ← backtrack: no more versions of github.com/dgrijalva/jwt-go to try
(12)  ← backtrack: no more versions of github.com/davecgh/go-spew to try
(11)  ← backtrack: no more versions of cloud.google.com/go to try
(10)  ← backtrack: popped 1 pkgs from github.com/prometheus/client_golang
(9)     ← backtrack: no more versions of k8s.io/kubernetes to try
(8)     ← backtrack: no more versions of github.com/matttproud/golang_protobuf_extensions to try
(7)     ← backtrack: no more versions of github.com/prometheus/common to try
(6)     ← backtrack: no more versions of github.com/golang/protobuf to try
(5)     ← backtrack: no more versions of github.com/prometheus/client_model to try
(4)     ← backtrack: no more versions of github.com/beorn7/perks to try
(3)     ← backtrack: no more versions of github.com/prometheus/client_golang to try
(2)     ← backtrack: no more versions of github.com/gorilla/websocket to try
(1)     ← backtrack: no more versions of github.com/golang/glog to try
  ✗ solving failed

Solver wall times by segment:
     b-source-exists: 8.563369086s
         b-list-pkgs: 4.526788677s
              b-gmal: 1.783593559s
  b-deduce-proj-root: 1.168543572s
         select-atom: 140.675344ms
            unselect:  132.55547ms
             satisfy: 120.609012ms
         select-root:   2.532885ms
            new-atom:   1.225076ms
           backtrack:    251.339µs
               other:     60.042µs
            add-atom:      3.987µs

  TOTAL: 16.440208049s

Solving failure: exit status 128

/assign

@MrHohn
Copy link
Member Author

MrHohn commented Mar 19, 2018

I was suspecting #148, which made a raw patch in vendor. But turned out even after reverted that dep ensure doesn't work. It might be something else.

@MrHohn
Copy link
Member Author

MrHohn commented Mar 21, 2018

Sorry, turned out to be some permission issues in my dep cache ($GOPATH/pkg/dep/sources/) caused by couple improper operations.

@MrHohn MrHohn closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant