-
Notifications
You must be signed in to change notification settings - Fork 454
overlapping packages are not able to be updated #463
Comments
Oh, I missed the second half of that comment. It's necessary to also run One plausible way to do that is to encode more information in Godeps.json such as the path the package is relative to the repo it's in. |
It looks like you have a newer version of golang.org/x/net in your GOPATH. Since godep works off what's in the GOPATH you need to 'godep restore' before saving new deps or this can happen. I'd like to get away from having to do that, but I'm not sure the right UI for it. The error / help text should be clearer as well. Thanks for the report. Sent from my iPhone
|
Great! As data for future decisions, I'd actually intentionally made sure to install grpc with The Until the Thanks for the code! It's been great. |
I am in the middle of rewritting update, so let's see if I can also tackle some of this ... I'm not sure what you mean wrt "recording the path". I'm not familiar with gvt, so I'll have to play with it. FWIW: Go packages are path based already. There is code in godep to figure out the root repo for a given package, so godep already has that info. It's just the way things are stringed together right now is sub optimal. Before you did a Basically I'm trying to figure out a starting state to replicate this issue. |
PS: Thanks for the report. ;-) |
Oh, yeah, by relative path, I mean, for example, the package is "github.com/google/protobuf/proto" so the extra relative path info written down is "/proto" because the Git repo root is the "protobuf" directory. It can be used to detect when packages that overlap all are in the same repo. I was at master everywhere and my GOPATH deps all had a newer sha than the ones in Godeps.json. |
Yeah. that's why you need to $ godep restore
$ cd $GOPATH/src/<package you want to update>
$ git checkout master
$ git pull origin master (or checkout whatever you want to update to)
$ cd $GOPATH/src/<package I am working on>
$ godep update <package you want to update>/... (most likely need the /... atm) And yes, that kinda sucks. I am thinking of side-stepping this with a Thoughts? |
With
godep version
: godep v63 (darwin/amd64/go1.6.2)I added some code that added go grpc to my repository (and so,
golang.org/x/net/http2
was added).But then
godep save
failed and thegodep update
it told me that there was nothing for it to do:Here's a quick grep of my Godeps.json:
Running
go get -u -a golang.org/x/net/...
per a comment in #335 and tryingsave
andupdate
again changed nothing.The text was updated successfully, but these errors were encountered: