go - How should a glide project import another project with a vendor/ directory? -
the golang glide packager automatically install dependencies project, however, in doing pulls in dependencies vendor/, since many projects check in vendor dependencies.
how should 1 import glide dependency includes vendor/ directory?
as of now, appears can errors such :
./scheduler.go:36: cannot use "github.com/jayunit100/my-project/vendor/github.com/spf13/pflag".commandline (type *"github.com/jayunit100/my-project/vendor/a/b/spf13/pflag".flagset)
type *"github.com/jayunit100/my-project/vendor/a/b/vendor/github.com/spf13/pflag".flagset
- import normal, , manually delete
vendor/
there no redundancies. - import normal, , use kind of configuration trick avoid
vendor/
dependency duplication?
i think quite common issue people using glide. team ran same issue , had investigate while found using flatten operation solved us.
to pass -v
flag glide operations.
e.g. glide -v
you can read more on glide docs.
Comments
Post a Comment