From f5fd7ec8ccc1e2e325aa9b5ba94bbb36167a41a3 Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Thu, 22 Feb 2024 23:00:03 +0800 Subject: commands/mod: Ignore invalid module path --- modules/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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()) -- cgit v1.2.3