x/tools/gopls: whether or not the files are under git affects gopls's behaviour? #38582
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use Emacs 27 + eglot.
I want to use another module in a module and I want to put all files under a git repo.
so link
git init . && git add .
in diretory D.What did you expect to see?
Go to definition, completion work as expected.
What did you see instead?
You are neither in a module nor in your GOPATH.
Other
It seems that when files are under git, gopls will take that into account and ignore(?) go.mod in some degree.
Is this the expected behaviour? If so, is there any way to work around it?
Thanks.
The text was updated successfully, but these errors were encountered: