mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 18:02:28 +00:00
parent
a21a9373e0
commit
20f2211fce
1 changed files with 7 additions and 0 deletions
|
@ -264,6 +264,13 @@ func (c *Client) Get(args ...string) error {
|
|||
|
||||
// We need to be explicit about the modules to get.
|
||||
for _, m := range c.moduleConfig.Imports {
|
||||
if !isProbablyModule(m.Path) {
|
||||
// Skip themes/components stored below /themes etc.
|
||||
// There may be false positives in the above, but those
|
||||
// should be rare, and they will fail below with an
|
||||
// "cannot find module providing ..." message.
|
||||
continue
|
||||
}
|
||||
var args []string
|
||||
if update {
|
||||
args = []string{"-u"}
|
||||
|
|
Loading…
Reference in a new issue