Skip to content

ProblemReporting: support more non-wildcard digits#873

Open
nafg wants to merge 2 commits intolightbend-labs:mainfrom
nafg:patch-1
Open

ProblemReporting: support more non-wildcard digits#873
nafg wants to merge 2 commits intolightbend-labs:mainfrom
nafg:patch-1

Conversation

@nafg
Copy link
Copy Markdown
Contributor

@nafg nafg commented Jul 9, 2025

Currently versioned exclusion files don't work correctly for version strings like those from sbt-dynver, because it looks at all the digits after the last period. However the digits of a version string like 3.6.1+42-c80fbe6a+20250708-2356-SNAPSHOT create a number far greater than Short.MaxValue. It's even larger than Int.MaxValue. So the easiest fix seems to be to just go with Long.MaxValue.

@nafg
Copy link
Copy Markdown
Contributor Author

nafg commented Jul 9, 2025

Meanwhile worked around it by replacing the .x wildcard with .99999 in slick/slick#3178

Currently this doesn't work correctly for version strings like from sbt-dynver, because it looks at all the digits after the last period. However the digits of a version string like `3.6.1+42-c80fbe6a+20250708-2356-SNAPSHOT` create a number far greater than `Short.MaxValue`. It's even larger than `Int.MaxValue.` So the easiest fix seems to be to just go with `Long.MaxValue`.
@lrytz
Copy link
Copy Markdown
Collaborator

lrytz commented Feb 10, 2026

@nafg I added a few more changes to make the tests pass. LGTY?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants