mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
@@ -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 {
|
||||
|
Reference in New Issue
Block a user