mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
84adecf97b
commit
9a1e6d15a3
9 changed files with 124 additions and 83 deletions
|
@ -605,8 +605,9 @@ type ClientConfig struct {
|
|||
// etc.
|
||||
HookBeforeFinalize func(m *ModulesConfig) error
|
||||
|
||||
// Ignore any _vendor directory.
|
||||
IgnoreVendor bool
|
||||
// Ignore any _vendor directory for module paths matching the given pattern.
|
||||
// This can be nil.
|
||||
IgnoreVendor glob.Glob
|
||||
|
||||
// Absolute path to the project dir.
|
||||
WorkingDir string
|
||||
|
@ -618,6 +619,10 @@ type ClientConfig struct {
|
|||
ModuleConfig Config
|
||||
}
|
||||
|
||||
func (c ClientConfig) shouldIgnoreVendor(path string) bool {
|
||||
return c.IgnoreVendor != nil && c.IgnoreVendor.Match(path)
|
||||
}
|
||||
|
||||
type goBinaryStatus int
|
||||
|
||||
type goModule struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue