Repository navigation
The version check knows a released version by its release tag - #39
Merged
Merged
Conversation
Maven Central rate limits the IP addresses that GitHub's runners share, so looking the version up there failed the check with 429 Too Many Requests. Every release is a GitHub release tagged v<version>, so the check looks for that tag in the repository instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks
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.
The version check from #38 looked the version up on Maven Central. Central rate limits the IP addresses that GitHub's runners share, so on #37 the lookup returned
429 Too Many Requestsand the check failed.Every release is published from a GitHub release tagged
v<version>(#37), so the check now counts a version as released if the repository has that tag. It looks the tag up withgit ls-remoteand needs no outside service. If the tags can't be listed at all, the check fails with an error, rather than treating the version as unreleased.Testing
I ran the check's script under
bash -e, as Actions runs it, against simulated PR merge commits and a local origin:v4.0.1on originClient.javaClient.javabuild.gradleNote
Versions 4.0.0 and earlier have no tags, because they were published before releases came from GitHub. Since the version is already 4.0.1, this only matters if someone moves the version back. Tagging the old releases (for example
v4.0.0atbf6a0d8) would close that gap.🤖 Generated with Claude Code