Repository navigation
fix: read every listing page and report HTTP errors - #7
Merged
Merged
Conversation
parseReleases requested only the first page of the Cloud Storage listing, so versions listed after the first 1000 prefixes were dropped silently. It now follows nextPageToken until a response has none, percent-encoding the token in the query string. A repeated token is reported as an error. An HTTP error status returns no err from http.get, so the error handlers concatenated a nil value and failed with a Lua error. err and the status are now checked separately, and the message includes the status. The arm64 error message was missing a space. It now reads "dart does not support arm64 architecture", and the platform pages quote the corrected text. The changelog gets an Unreleased entry in both languages. tests/releases_test.lua covers paging, the repeated-token guard and each error path.
This was referenced Nov 18, 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 #5
Fixes #6
Summary
util:parseReleasesfollowsnextPageTokenand percent-encodes the token, so versions listed after the first 1000 prefixes are no longer dropped. A repeated token is reported as an error instead of looping forever.err.errand the status are checked separately, and the message includes the status, for exampleget version failed: HTTP 503. This covers the version listing, the latest-version file and the checksum.dart does not support arm64 architecture.docs/platforms.mdanddocs/zh-CN/platforms.mdquote the corrected text, and the changelog has an Unreleased entry in both languages.Verification
tests/releases_test.lua(new) covers a three-page dev listing with encoded tokens, installing a version that is only on the last page, a repeated token, a page without a prefixes field, HTTP 503 and a transport error for the listing, the checksum and the latest-version file, and the arm64 message.vfox plugin test .with vfox 1.1.0, the version the Test Plugin workflow pins, passes all six test files. Onorigin/mainthe new file fails at its first paging assertion.stylua --check .with v2.6.0, as in the Lint workflow, passes. lua-language-server was not run locally.vfox plugin run ... Availableagainst the live Cloud Storage listing gives identical output before and after the change (1283 versions). The current second dev page holds no versions, so the live run does not show the new paging result; the test file does.