Skip to content

Fix version parsing logic - #208

Merged
JasonGross merged 2 commits into
mit-plv:masterfrom
miriampolzer:makefile_version_fix
Jul 27, 2026
Merged

Fix version parsing logic#208
JasonGross merged 2 commits into
mit-plv:masterfrom
miriampolzer:makefile_version_fix

Conversation

@miriampolzer

Copy link
Copy Markdown
Contributor

The old logic was not matching on versions with no third component.
This is hopefully the right way to parse these.

@miriampolzer

Copy link
Copy Markdown
Contributor Author

@JasonGross could you review this? Without it, rewrite doesn't build from scratch with rocq 9.2

@JasonGross

Copy link
Copy Markdown
Collaborator

Sorry, I missed this. This will break as soon as we get 9.10, is there something more robust we can do?

Prefix patterns like 9.1% would match 9.10 the day it exists.  Instead,
normalize COQ_VERSION to its first two components (splitting on ".",
"+", "-", "~", so "9.2", "9.2.0", "9.2+rc1" and "9.2.0+dfsg" all yield
"9.2") and select the compat extension by exact equality on that.
Unknown future versions (9.10, 9.3, dev) still fall through to the
newest extension, as before.

Verified against 9.2 / 9.2.0 / 9.2+rc1 / 9.2.0+dfsg -> .v92,
9.1 / 9.1.1 -> .v91, 9.0 -> .v90, 8.20.1 / 8.15 -> unchanged 8.x
handling, and 9.10 / 9.10.0 / 9.10+rc1 / 9.3.0 / empty -> .v93.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw
@JasonGross
JasonGross enabled auto-merge (squash) July 24, 2026 16:46
@miriampolzer

Copy link
Copy Markdown
Contributor Author

I see you fixed it already, thanks!

@JasonGross
JasonGross disabled auto-merge July 27, 2026 19:32
@JasonGross
JasonGross merged commit 7b6220c into mit-plv:master Jul 27, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants