diff options
author | Razon Yang <[email protected]> | 2024-02-22 23:00:03 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-22 16:00:03 +0100 |
commit | f5fd7ec8ccc1e2e325aa9b5ba94bbb36167a41a3 (patch) | |
tree | 22f717c2c44e48a3333622b86d0f8483a07153cd /modules | |
parent | 16406d9d77cb4861bba9df8ca39e7dadfe41eb45 (diff) | |
download | hugo-f5fd7ec8ccc1e2e325aa9b5ba94bbb36167a41a3.tar.gz hugo-f5fd7ec8ccc1e2e325aa9b5ba94bbb36167a41a3.zip |
commands/mod: Ignore invalid module path
Diffstat (limited to 'modules')
-rw-r--r-- | modules/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/client.go b/modules/client.go index c3371e0d4..f358f3f75 100644 --- a/modules/client.go +++ b/modules/client.go @@ -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()) |