News for hackers. Stuff that matters.
Re:Go: Ten years and climbing by kminehart on Friday September 22, 2017 @07:55PM (#15317035)
Hmm yeah I think that would be a good option. One potential problem with that is running tests on the individual packages. I believe that the vendor folder would have to be in a descendant folder. So like... "./vendor", or "../vendor", "../../vendor", and so on. If the vendor folder was in "./cmd/vendor", and you ran the test "go test ./pkg/example", it would not find the vendor folder.

My solution was just to not commit the vendor folder, and before the test starts, run "dep ensure".

Re:Go: Ten years and climbing by infogulch on Friday September 22, 2017 @09:35PM (#15317500)
Oh that's certainly a good point and a deficiency in my design.

But then again if you're only testing H against A's vendored dependencies specifically, you're missing testing it against B's. I'm not sure how you would fix that.