tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.54k stars 455 forks source link

godep get doesn't seem to do anything with vendor #501

Open unclejack opened 8 years ago

unclejack commented 8 years ago

Expected behavior

godep get should add the package to vendor just like godep save ./... would.

Actual behavior

godep get looks at the packages, but doesn't add it to vendor and to Godeps.json

Steps to reproduce behavior

  1. set up Godeps with Go 1.6.3 for a project
  2. try to use godep get to add a package to vendor
  3. the package doesn't get added to vendor

I can reproduce this with a simple brand new setup and with existing setups.

godep version output

godep v74 (linux/amd64/go1.6.3)

go version output

go version go1.6.3 linux/amd64

JoakimSoderberg commented 8 years ago

I was expecting this behavior as well. godep get simply puts the packages into the $GOPATH/src directory.

The only way to put them in vendor instead is to use godep save, but what if I don't want to update them to the latest version?