문제

I have just started using godep for the first time. When I ran godep save, the Godeps.json file did not include testify which is a dependency for my unit tests.

go get -t would see testify, how do I tell godep to include my test dependencies?

도움이 되었습니까?

해결책

godep saves test dependencies automatically. In my case, the tests were in an inner package, so I only needed to run godep save ./... instead of godep save and testify was found as expected.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top