-
Notifications
You must be signed in to change notification settings - Fork 1k
Can't init with generated sub-packages. #1077
Comments
hi! ok so, couple things here. easy one first:
we're trying to improve feedback around this, but there's a lot of factors to weigh:
this is really the knottier problem. some quick background, first. dep is built around an assumption that all generated code is being committed into dependency repositories. this was already at least a best practice around the time that in the past year or so (so, also including some time while we were looking at incorporating gps into glide), this has come up three times, IIRC. each time, no one's found it terribly objectionable that we have this "must commit generated code" requirement. the discussion has tended towards the idea that it's reasonable to expect having the package at least exist - see, for example, container-storage-interface/spec#91. so, i'd encourage that for this case as well - or, if there's a clear reason that that won't work, we can discuss that! in any case, for right now, the more permanent fix is to ask in the meantime, your stopgap is a little painful, because you can't get past |
update: @jmank88 read the original blog post more closely, and here's the quote i was thinking of:
|
Tried to init repo, getting error. I have a package in vendor already that is generated (outside of git). dep doesn't seem to like that.
What version of Go (
go version
) anddep
(git describe --tags
) are you using?go version
go version go1.9 darwin/amd64
dep version 0.3.0 (should make it easier to find this out.)
What
dep
command did you run?dep init
dep init
^CNo versions of github.com/Juniper/contrail-go-api met constraints:
v1.1.0: Could not introduce github.com/Juniper/[email protected], as its subpackage github.com/Juniper/contrail-go-api/types is missing. (Package is required by (root).)
1.0.0: Could not introduce github.com/Juniper/[email protected], as its subpackage github.com/Juniper/contrail-go-api/types is missing. (Package is required by (root).)
master: Could not introduce github.com/Juniper/contrail-go-api@master, as its subpackage github.com/Juniper/contrail-go-api/types is missing. (Package is required by (root).)
What did you expect to see?
I expected to be able to initialize my vendor repo.
What did you see instead?
It just hangs. I expected it to timeout or something. Also it doesn't give me an error until I hit Ctl-c.
The text was updated successfully, but these errors were encountered: