-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Description
The race in go/packages reported in #31749 was fixed at tip, but is still an issue for Go 1.13 and earlier, and is showing up in the go/packages race failure reported in #36605.
That race is caused by a race in go/types which in turn is caused by go/constant.Float64Val()
calling Rat.Float64
in math/big, which has a race reported in #34919 , and subsequently fixed in tip.
Fixing this race in go/types on Go 1.13 and earlier requires backporting CL 201205 to those releases. (Alternatively, we could fix the race by adding a workaround in go/constant or go/types, but that would be more work). I'm not sure if fixing this is worth a backport but we might as well have the discussion. If we decide not to go with the backport, we'll have to accept a race in go/packages and disable some of its tests in race mode in Go 1.13 and earlier.