mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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())
|
||||
|
|
|
@ -4,6 +4,7 @@ stdout 'commonmod@v1.0.1.*commonmod2@v1.0.2'
|
|||
|
||||
-- hugo.toml --
|
||||
title = "Hugo Modules Update Test"
|
||||
theme = ["my-theme"]
|
||||
[module]
|
||||
[[module.imports]]
|
||||
path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
|
||||
|
@ -17,4 +18,5 @@ require (
|
|||
github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.1.0 // indirect
|
||||
github.com/gohugoio/hugo-mod-integrationtests/commonmod v0.0.0-20230823103305-919cefe8a425 // indirect
|
||||
)
|
||||
|
||||
-- themes/my-theme/dummy.txt --
|
||||
MY THEME
|
||||
|
|
Loading…
Reference in a new issue