x/tools/gopls: loading locally replaced modules fails due to missing sum entries #65762
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.
Milestone
Due (I think) to precise pruning in the go command, the fix for #64888 doesn't really work: locally replaced modules may have spurious import errors in packages that are pruned, due to missing go.sum entries. I think I was overfitting to the Kubernetes use-case.
Therefore, we should at least temporarily revert this behavior until we figure out something better. In general, even a locally replaced module must be loaded as a separate build, as only the local go.sum will be complete.
Fortunately, we can just revert the default value of "includeReplaceInWorkspace".
CC @adonovan
The text was updated successfully, but these errors were encountered: