Updating the exclude yaml key to excludeDirs
diff --git a/cfg/cfg.go b/cfg/cfg.go index 93a309b..e9ed812 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go
@@ -19,7 +19,7 @@ // homepage: https://www.mattfarina.com // ignore: // - appengine -// exclude: +// excludeDirs: // - node_modules // import: // - package: gopkg.in/yaml.v2 @@ -45,7 +45,7 @@ // owners of a security issue without filing a public bug. // - ignore: A list of packages for Glide to ignore importing. These are package // names to ignore rather than directories. -// - exclude: A list of directories in the local codebase to exclude from +// - excludeDirs: A list of directories in the local codebase to exclude from // scanning for dependencies. // - import: A list of packages to import. Each package can include: // - package: The name of the package to import and the only non-optional item.
diff --git a/cfg/config.go b/cfg/config.go index db9297c..f3af3f5 100644 --- a/cfg/config.go +++ b/cfg/config.go
@@ -43,7 +43,7 @@ // Exclude contains a list of directories in the local application to // exclude from scanning for dependencies. - Exclude []string `yaml:"exclude,omitempty"` + Exclude []string `yaml:"excludeDirs,omitempty"` // Imports contains a list of all non-development imports for a project. For // more detail on how these are captured see the Dependency type. @@ -62,7 +62,7 @@ License string `yaml:"license,omitempty"` Owners Owners `yaml:"owners,omitempty"` Ignore []string `yaml:"ignore,omitempty"` - Exclude []string `yaml:"exclude,omitempty"` + Exclude []string `yaml:"excludeDirs,omitempty"` Imports Dependencies `yaml:"import"` DevImports Dependencies `yaml:"devimport,omitempty"` }
diff --git a/docs/glide.yaml.md b/docs/glide.yaml.md index 5bec302..2216bee 100644 --- a/docs/glide.yaml.md +++ b/docs/glide.yaml.md
@@ -14,7 +14,7 @@ homepage: https://www.mattfarina.com ignore: - appengine - exclude: + excludeDirs: - node_modules import: - package: gopkg.in/yaml.v2 @@ -33,7 +33,7 @@ - license: The license is either an [SPDX license](http://spdx.org/licenses/) string or the filepath to the license. This allows automation and consumers to easily identify the license. - `owners`: The owners is a list of one or more owners for the project. This can be a person or organization and is useful for things like notifying the owners of a security issue without filing a public bug. - `ignore`: A list of packages for Glide to ignore importing. These are package names to ignore rather than directories. -- `exclude`: A list of directories in the local codebase to exclude from scanning for dependencies. +- `excludeDirs`: A list of directories in the local codebase to exclude from scanning for dependencies. - `import`: A list of packages to import. Each package can include: - `package`: The name of the package to import and the only non-optional item. Package names follow the same patterns the `go` tool does. That means: - Package names that map to a VCS remote location end in .git, .bzr, .hg, or .svn. For example, `example.com/foo/pkg.git/subpkg`.