top | item 30996930

(no title)

disposedtrolley | 3 years ago

I'm looking forward to the improved editor experience as gopls is now workspace-aware.

There's a couple of repos at work which contain multiple Go modules (each in their own subdirectory, with their own go.mod files). It's a bit of a pain to get LSP working correctly for each individual module if I open the root directory of the repo in my editor.

discuss

order

preseinger|3 years ago

> There's a couple of repos at work which contain multiple Go modules (each in their own subdirectory, with their own go.mod files).

There's almost no reason to do this. 1 repo = 1 module. Even for monorepos.

gkfasdfasdf|3 years ago

Can you elaborate? What if you have multiple commands (main.go) with differing dependencies?