x/mod/modfile: document which fields in a parsed modfile may be nil #60898
Labels
Documentation
help wanted
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
We've had several crashes in gopls related to
modfile.File.Module
being nil.On the other hand, we have a bunch of code checking if
modfile.File.Module.Syntax
is nil -- is that possible ifmodfile.File.Module
is non-nil?It would be nice if the
modfile
API documented which fields may be nil.CC @bcmills @adonovan
The text was updated successfully, but these errors were encountered: