diff options
Diffstat (limited to 'modules/client.go')
-rw-r--r-- | modules/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/client.go b/modules/client.go index ae1a6a2b2..a743df5bd 100644 --- a/modules/client.go +++ b/modules/client.go @@ -279,12 +279,12 @@ func (c *Client) Init(path string) error { return nil } -func (c *Client) isProbablyModule(path string) bool { +func isProbablyModule(path string) bool { return module.CheckPath(path) == nil } func (c *Client) listGoMods() (goModules, error) { - if c.GoModulesFilename == "" { + if c.GoModulesFilename == "" || !c.moduleConfig.hasModuleImport() { return nil, nil } |