mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -219,7 +219,7 @@ func (c *Client) Vendor() error {
|
||||
// This is the project.
|
||||
continue
|
||||
}
|
||||
// We respect the --ignoreVendor flag even for the vendor command.
|
||||
|
||||
if !t.IsGoMod() && !t.Vendor() {
|
||||
// We currently do not vendor components living in the
|
||||
// theme directory, see https://github.com/gohugoio/hugo/issues/5993
|
||||
|
@@ -339,7 +339,7 @@ func (c *collector) addAndRecurse(owner *moduleAdapter, disabled bool) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if tc == nil {
|
||||
if tc == nil || moduleImport.IgnoreImports {
|
||||
continue
|
||||
}
|
||||
if err := c.addAndRecurse(tc, disabled); err != nil {
|
||||
|
@@ -301,10 +301,12 @@ func (v HugoVersion) IsValid() bool {
|
||||
}
|
||||
|
||||
type Import struct {
|
||||
Path string // Module path
|
||||
IgnoreConfig bool // Ignore any config.toml found.
|
||||
Disable bool // Turn off this module.
|
||||
Mounts []Mount
|
||||
Path string // Module path
|
||||
IgnoreConfig bool // Ignore any config in config.toml (will still folow imports).
|
||||
IgnoreImports bool // Do not follow any configured imports.
|
||||
NoVendor bool // Never vendor this import (only allowed in main project).
|
||||
Disable bool // Turn off this module.
|
||||
Mounts []Mount
|
||||
}
|
||||
|
||||
type Mount struct {
|
||||
|
Reference in New Issue
Block a user