I'm trying to run the application (written in Go) inside docker. To install dependencies I'm using godep. When executing godep inside docker, following error is received
docker run -ti --rm -v $PWD:/go/src/app -p3000:3000 golang bash
root@7c491d184712:/go/src/app# go get github.com/tools/godep
root@7c491d184712:/go/src/reno# godep save
godep: Package (github.com/Shopify/sarama) not found
Godep needs you to have local copies of the dependencies you want to vendor. You should run
go get
before runninggodep save
. Additionally, assuming you have sub-packages in your app folder, you should rungodep save ./...
.Godep's readme: https://github.com/tools/godep#how-to-use-godep-with-a-new-project