Closed yurishkuro closed 5 years ago
I noticed this and was working on a fix the other day. The issue is dep prunes unused dependencies. The best idea I had was a file named vendor.go
and import the packages like so:
import (
_ "..."
)
Presumably would circumvent the pruning.
Interestingly, the old glide.lock
did not contain any references to github.com/ghodss/yaml
either. So it might not be the pruning, but somehow we're picking up newer version of protoc-gen-grpc-gateway
.
Can't we instruct dep
not to prune deps for some modules?
Figured out the canonical way to do this is to use the required
list. Posting PR in a moment. See more here: https://golang.github.io/dep/docs/Gopkg.toml.html#required.
Thanks for the ref. We should consider using virtualgo as well, it auto-installs dep-required packages .
In order to guarantee repeatable protobuf code gen, we have a targer
proto-install
in the Makefile, which installs gogoproto plugins locally. Unfortunately, this target is not tested in the CI, and it has been broken by thedep
upgrade.Compare
vs. master (or anything since 5f6af99):
cc @isaachier @vprithvi