Repository navigation
fix(check): offer index placeholder and singular dependency count - #248
Merged
patrickballard merged 2 commits intoNov 23, 2026
Merged
patrickballard merged 2 commits into
patrickballard merged 2 commits into
Conversation
wheelgap#246 asks for both cases: without unchecked packages the command must stay as it was. The exact strings also show the placeholder is never a URL and the flag appears once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Merged, thanks @bfs2021! The page's command now carries an The copied fix prompt still uses the plain command in that case. If you'd like it, that's tracker#249. |
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.
Problem
Issue #246 reports two small defects on the repo-checker result page:
uvx wheelgapCLI command — and that command has no--index-url, even though the private-index alert right above it tells the visitor to add one.shareText's gaps branch renders "1 of 1 dependencies has no wheel on 1 target", disagreeing in number withverdictText("1 package has").Root cause
renderNext()insite/check/check.mjsalways sets the CLI text fromcliCommand()alone, ignoringnotCheckedCount(r). InshareText()insite/check/check-logic.mjs, the gaps branch hard-codes the plural noundependenciesregardless ofh.packages.Fix
renderNext()appends--index-url YOUR_INDEX_URL(a placeholder, never a real URL) to the CLI command whennotCheckedCount(r) > 0, and leaves the command unchanged otherwise.shareText()picksdependencywhenh.packages === 1anddependenciesotherwise, matchingverdictText's singular wording. The rest of the line — including the verb agreement and thenotCheckedtail — is untouched.Both strings are still built with
textContentonly (strict CSP safe).Testing
Regression tests were written first and confirmed failing on the unfixed source (2 failures), then passing after the fix:
tests/site/check-page.test.mjs: a result with unchecked private packages now shows the CLI command with the--index-url YOUR_INDEX_URLplaceholder, and never duplicates the flag.tests/site/check-logic.test.mjs:shareTextsays "1 of 1 dependency has no wheel on 1 target" for a single gap.Commands run:
Fixes #246