x/tools/gopls: diff metadata before invalidating on changes to go.mod #36589
Labels
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Right now,
gopls
invalidates all workspace metadata if there is a change to the user'sgo.mod
file. This is unnecessary if the metadata remains valid after the change. @heschik proposes runninggo list -m all
as a gate during the snapshot cloning to determine if we should invalidate all metadata or keep it in the cache. Either way, we will either invalidate all metadata for the workspace or none.The text was updated successfully, but these errors were encountered: