diff options
author | Razon Yang <razonyang@gmail.com> | 2024-02-22 23:00:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 16:00:03 +0100 |
commit | f5fd7ec8ccc1e2e325aa9b5ba94bbb36167a41a3 (patch) | |
tree | 22f717c2c44e48a3333622b86d0f8483a07153cd /modules/client.go | |
parent | 16406d9d77cb4861bba9df8ca39e7dadfe41eb45 (diff) |
commands/mod: Ignore invalid module path
Diffstat (limited to 'modules/client.go')
-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()) |