x/tools/go/packages: NeedExportsFile and Package.ExportFile are inconsistent #36302
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
The former uses the plural
Exports
, and the latter uses the singularExport
.I think this was a typo made in https://golang.org/cl/162140 that never got spotted, unfortunately.
I see multiple options, where 1 is the one I'd prefer the most:
NeedExportFile
const as a duplicate ofNeedExportsFile
, and deprecate the latter (assuming that "export file" is the right term)NeedExportsFile
doc to say that it addsExportFile
, notExportsFile
ExportsFile
field as a duplicate ofExportFile
, and deprecate the latter (assuming that "exports file" is the right term)/cc @matloob @stamblerre @ianthehat @heschik
The text was updated successfully, but these errors were encountered: