Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/playground: if Imports is checked, run 'go mod tidy' when the Format button is pressed #32614
CL 177421 added formatting for
However, that isn't really enough to result in a reproducible build: as noted in #31944 (comment), unresolved dependencies are re-resolved whenever the cache is invalidated, which is difficult to predict.
One simple fix to add stability would be to have the existing
It looks like the current implementation of Format uses the
In order to run