I Already have a existing project in github and have deps json file stored in Godeps folder and dependency packages in vendor folder.
Now I need a way to add a new package to the list without effecting anything to the existing json file and vendor package folder
Don't fight the tooling. Let
godep
update your json file and vendor folder, no matter how much it disturbs your pristineGodeps/godeps.json
file.If you use
go get -u foo/bar
for your new package, this only affects your new package offoo/bar
- it does not update your existing packages.As a side note, I recommend getting in the habit of using
godep
prefixes so not to disburb your$GOPATH
:It makes switching multiple repos much easier.
Tip: make your configuration defaults sensible for your "local development environment" for your team. E.g. DB username/password like "dev/dev" and so on. That way, you don't have to pass parameters with
godep go run main.go
. Nice and simple.