x/tools/gopls: race in updateAnalyzers #36699
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
Seen on CL 215743, which was not related.
This is specific to the tests in
golang.org/x/tools/gopls/test
, because they pass an options modification function (with the signaturefunc(*source.Options)
) that updates the analyzers map. All of the command tests use this type of function, but only the gopls/test ones modify a map. A possible solution would be to have a mutex on the options before modifying them.The text was updated successfully, but these errors were encountered: