The golang Glide packager automatically will install dependencies for a project, however, in doing so it pulls in dependencies from the vendor/, since many projects check in vendor dependencies.
How should one import a glide dependency which includes a vendor/ directory?
As of now, it appears that you can get errors such as :
./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)
as type
*"github.com/jayunit100/my-project/vendor/a/b/vendor/github.com/spf13/pflag".FlagSet
- import as normal, and then manually delete
vendor/
so there are no redundancies. - import as normal, and use some kind of configuration trick to avoid the
vendor/
dependency duplication?