We currently do a naive regex search on the string dump of the entire plan when trying to find version numbers. We should attempt to do the following instead:
Get the plan name, these are usually of the form "v"
Search the git tags in the associated chain repo
Find all matching tags that have the plan name version number in them
Return the "best" match (or the closest match that can be made)
We currently do a naive regex search on the string dump of the entire plan when trying to find version numbers. We should attempt to do the following instead: