Support in dep
lielran opened this issue · 2 comments
lielran commented
since go dep doing to be the official dependency management tool for Golang. it's a good idea to support it in the build phase.
I try to do that by changing the Makefile but faced an issue with:
1)installing it - the usually way is go get -u github.com/golang/dep/cmd/dep which is required git installed
2)using the vendor folder for the completion(no not GOPATH)
mrserverless commented
@lielran someone tweeted me the same question the other day. I will either add an example or modify the existing examples with vendor support.
mrserverless commented
@lielran dep support has been added in 46c92a6
- resolved by using a docker image that contains both
gitanddep. Then mounting$GOPATH/srconly so that$GOPATH/bin/depdoesn't get overwritten. - use the actual
$GOPATH/src/appas the docker working dir. This was inspired by https://github.com/eawsy/aws-lambda-go-shim/blob/master/src/Makefile.example#L32
Please test this out and let me know if you find any issues.