Repository navigation
Generalize remembered patterns for prefixed release tags - #19
Merged
Merged
Conversation
Tags like selenium-4.41.0 name assets selenium-server-4.41.0.jar, so the saved asset and binary patterns kept the version and the next update matched 0 assets. Strip the tag's version part too, and repair patterns already saved that way before resolving them.
jsnjack
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
grm updatefails for any package whose release tags carry a prefix, e.g.SeleniumHQ/selenium(selenium-4.41.0):Cause
rememberPatternonly strips the full tag and the tag minusv. Neither appears inselenium-server-4.41.0.jar, so the saved asset pattern and binary path keep the version.Change
rememberPatternalso strips the tag's version part (from the first digit, only when it contains a.).generalizeSelectionsre-runs that on already-saved selections against the installed tag before resolving, so existing configs heal on the next update. No manual--asset/--binaryneeded.Tested
go vet+go test ./...green on Linux. (Several existing tests are Linux-only and fail on macOS onmastertoo.)TestPrefixedTagPatternsSurviveUpdatescovers the selenium case.almalinux:10container:grm install SeleniumHQ/selenium==selenium-4.41.0 -f jar -n selenium-server-standalone -ygrm update -y→ the error aboveselenium-4.51.0, savesselenium-server-*.jar, a second update reportslatest