golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.87k stars 1.05k forks source link

ignore commented imports #2224

Closed Cas-pian closed 4 years ago

Cas-pian commented 4 years ago

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

 dep:
 version     : v0.5.4
 build date  : 2019-07-01
 git hash    : 1f7c19e
 go version  : go1.12.6
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

What dep command did you run?

dep ensure

What did you expect to see?

I comment a go file (contains import k8s.io/apimachinery/pkg/apimachinery/registered), only left it with package definition dep ensure should returned successfully.

What did you see instead?

        release-1.11: Could not introduce k8s.io/apimachinery@release-1.11, as its subpackage k8s.io/apimachinery/pkg/apimachinery/registered is missing. (Package is required by (root).)       
Cas-pian commented 4 years ago

close as I've found it's caused by the wrong config.