x/mod/semver: Lack of information about invalid version #49025
Labels
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Consider "v0.0.1-pre.failed_f+build"
There is no exported method to know what is wrong with this version string with these two method.
semver.IsValid
semver.Canonical
The only way for now is checking all parts of parser
What did you expect to see?
Some exported way return with "invalid prerelease"
What did you see instead?
None.
We do have err field but it's been deleted in golang/mod@ecfafd6.
Proposal
Adding
semver.Err(string)
and revert golang/mod@ecfafd6.cc @zchee @jayconrod
The text was updated successfully, but these errors were encountered: