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

Migration to vendor failed #487

Open toni-moreno opened 8 years ago

toni-moreno commented 8 years ago

Expected behavior

After following the migration steps , I expect to have a new ./vendor directory in my package https://github.com/toni-moreno/snmpcollector

Actual behavior

no vendor directory exists this is the output from the godep save ( no dependencies found)

$ godep save -v
godep: Go Version: go1.6
godep: Finding dependencies for [.]
godep: Found package: github.com/toni-moreno/snmpcollector
godep:  Deps: 
godep: Computing new Godeps.json file
godep: Computing diff between old and new deps
godep: Rewriting paths (if necessary)

Steps to reproduce behavior

$go get https://github.com/toni-moreno/snmpcollector
(to install godep)
$go run build.go setup 
(here download dependencies)
$go get github.com/Sirupsen/logrus
$go get github.com/go-macaron/binding
$go get github.com/go-macaron/cache
$go get github.com/go-macaron/session
$go get github.com/influxdata/influxdb/client/v2
$go get github.com/soniah/gosnmp
$go get github.com/spf13/viper
(now migration process)
$cd snmpcollector
$ unset GO15VENDOREXPERIMENT
$ godep restore
$ rm -rf Godeps
$ godep save

godep version output

godep v74 (linux/amd64/go1.6.2)

go version output

go version go1.6.2 linux/amd64

Contents of Godeps.json file

developer@ptlarqdev01:~/src/gospace/src/github.com/toni-moreno/snmpcollector$ cat Godeps/Godeps.json { "ImportPath": "github.com/toni-moreno/snmpcollector", "GoVersion": "go1.6", "GodepVersion": "v74", "Deps": [] }