opened
Groxx
username_0
<!--

Thanks for filing an issue! If this is a question or feature request, just delete
everthing here and write out the request, providing as much context as you can.

-->

### What version of Go (`go version`) and `dep` (`git describe --tags`) are you using?
```
$ go version
go version go1.8.3 darwin/amd64
$ cd $GOPATH/src/github.com/golang/dep && git describe --tags
v0.1.0-202-gddf5680
```
### What `dep` command did you run?
`dep init` (and `dep init -skip-tools`)
(with some scrubbing due to internal paths.  "internal-A" and "internal-B" are not .git suffixed and this happens both with and without "vcs: git" in glide.yaml)
```
$ dep init -v
Importing configuration from glide. These are only initial constraints, and are further refined during the solve process.
Detected glide configuration files...
  Loading /my/project/glide.yaml
  Loading /my/project/glide.lock
Converting from glide.yaml and glide.lock...
  Using X as initial constraint for imported dep internal-X
  Using Y as initial constraint for imported dep internal-Y.git
  Using Z as initial constraint for imported dep internal-Z.git
  Using ^1.0.0 as initial constraint for imported dep github.com/eapache/go-resiliency
  Using master as initial constraint for imported dep github.com/juju/ratelimit
  Using master as initial constraint for imported dep github.com/jmcvetta/randutil
  Using master as initial constraint for imported dep golang.org/x/tools
  Using v1.1.4 as initial constraint for imported dep github.com/stretchr/testify
  Using master as initial constraint for imported dep github.com/vektra/mockery
  Using master as initial constraint for imported dep github.com/jmcvetta/randutil
list versions for internal-A(): unable to deduce repository and source type for "internal-A": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://internal-A?go-get=1": Get http://internal-A?go-get=1: dial tcp 1.2.3.4:80: i/o timeout
```
```
$ dep init -skip-tools  -v
panic: shouldn't be possible unable to deduce repository and source type for "internal-B": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://internal-B?go-get=1": Get http://internal-B?go-get=1: dial tcp 1.2.3.4:80: i/o timeout

goroutine 1 [running]:
github.com/golang/dep/internal/gps.(*solver).selectRoot(0xc420174000, 0xc42025c180, 0xc42025c1b0)
	/Users/stevenl/gopath/src/github.com/golang/dep/internal/gps/solver.go:549 +0xada
github.com/golang/dep/internal/gps.(*solver).Solve(0xc420174000, 0x4a, 0x16bd340, 0xc42025c000, 0xc4200180be)
	/Users/stevenl/gopath/src/github.com/golang/dep/internal/gps/solver.go:394 +0x8d
main.(*initCommand).Run(0xc420159a3a, 0xc420019950, 0xc420010330, 0x0, 0x0, 0x0, 0x0)
	/Users/stevenl/gopath/src/github.com/golang/dep/cmd/dep/init.go:171 +0x6f6
main.(*Config).Run(0xc420072fc0, 0xc420072fc0)
	/Users/stevenl/gopath/src/github.com/golang/dep/cmd/dep/main.go:158 +0x876
main.main()
	/Users/stevenl/gopath/src/github.com/golang/dep/cmd/dep/main.go:45 +0x253
```

And the two failing packages are defined in glide.yaml as:
```
- package: internal-A
  version: ^0.1
  vcs: git  # tried with and without this, no differences
- package: internal-B
  version: ^0.1
```
which is interesting because some other internal packages seem to work, even though they're hosted in the same place and they also time out if I try to just visit `http://the/repo?go-get=1` in a browser...  I've also tried removing the `^`, no change.

The only real difference I can see for the working internal packages (without checking for additional hosting locations, etc) is that the working ones do not have a normal/valid semver version.  They're just a named tag and e.g. `1.2.3-beta4`

---

As nice as an auto-init process is, it's having problems looking up stuff in our internal repos, which is of course happening before I would have any chance to tell it where to look instead.
A way to ignore failures would be great, or even just a way to skip the import/parse entirely, without having to `dep init` in another folder somewhere.
`dep init` fails when looking up a repository times out
issue
created
Groxx
username_0
Ah, I guess this belongs behind some kind of private-repo support like #174 .  I'll close it, and revisit after that's a bit more supported :)
And thanks zevdg!  go-vanity might be a workaround in the meantime, I hadn't heard of it.
comment
closed
Groxx
username_0
issue