Updated readme and doc example
diff --git a/README.md b/README.md index de66731..fd52b41 100644 --- a/README.md +++ b/README.md
@@ -325,6 +325,10 @@ The package will not be fetched for other architectures or OSes. +**Q: How do I prevent vendored packages from importing the same package** + +You can use the `flatten: true` config option on the entire project or just one specific dependency. + ## LICENSE This package is made available under an MIT-style license. See
diff --git a/docs/example-glide.yaml b/docs/example-glide.yaml index 82ab9e3..f972ca2 100644 --- a/docs/example-glide.yaml +++ b/docs/example-glide.yaml
@@ -5,6 +5,11 @@ # will just spawn a new shell. incmd: bash -l +# Any listed import will only be imported once. Effectively preventing vendored +# packages from importing the same pkg via a glide.yaml file. +# Defaults to false +flatten: true + # External dependencies. import: # Minimal definition @@ -86,3 +91,8 @@ - darwin arch: - amd64 + + # If you would like to only include the package once and prevent vendored + # packages from including the same package. + - package: github.com/awesome/only_once + flatten: true