For example, this PR is one commit after tag 1.20.0. It should report version 1.20.1-0.0.pre.1, but instead it is looking for the most recent DEV tag (which is 1.20.0-7.0.pre), and thus reports 1.20.0-8.0.pre.5, which is BEFORE 1.20.0, and thus breaks version solving.
The problem is when globbing for the most recent tag, we check specifically for the dev version here. Also, I don't think our parsing logic supports stable tags as an input, so we would have to add support for that.