golang/go

x/tools/gopls: consider auto-detecting the module to provide -local without a config

Open

#40,660 opened on Aug 10, 2020

View on GitHub
 (4 comments) (13 reactions) (0 assignees)Go (19,008 forks)batch import
FeatureRequestToolsgoplsgopls/importshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

See the conversation on https://github.com/golang/go/issues/31999 and https://github.com/golang/go/issues/32049. Could we add some special value of the setting and have it automatically infer the name of the current module? For use cases where -local is not necessarily the path of current module, we could still allow a configuration as before.

/cc @heschik

Contributor guide