mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
commands/mod: Ignore invalid module path
This commit is contained in:
parent
16406d9d77
commit
f5fd7ec8cc
2 changed files with 4 additions and 2 deletions
|
@ -325,7 +325,7 @@ func (c *Client) Get(args ...string) error {
|
|||
return coll.err
|
||||
}
|
||||
for _, m := range mc.AllModules {
|
||||
if m.Owner() == nil {
|
||||
if m.Owner() == nil || !isProbablyModule(m.Path()) {
|
||||
continue
|
||||
}
|
||||
modules = append(modules, m.Path())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue