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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -