Repository navigation
fix: clearer refusals, real parsers and fewer requests for unusual repository setups - #190
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 459cdcc | Commit Preview URL Branch Preview URL |
Nov 05 2026, 03:31 AM |
- Gradle: an empty or unreadable content filter claims everything, all content/filter blocks union their claims, and a URL assigned twice, conditionally or by anything but one literal makes the repository unusable unless every assignment names the same public URL. exclusiveContent's forRepository stays public only as a lone mavenCentral(), google() or gradlePluginPortal() call; anything else is parsed as an ordinary repository declaration. - NuGet: a closer Directory.Packages.props only stops the parent governing when it holds no Import; opting out takes an unconditional literal false in the project or the nearest Directory.Build.props with nothing later setting it back; every extension ending in proj counts as a project, and a solution at or below a nuget.config ties it to a governed project anywhere. - mise package backends: pip index keys match case-insensitively with - or _ and = or :, a .yarnrc.yml that does not parse fails its lookups, and Cargo indexes are compared by exact host and URL with registry.index flagged; a .cargo config governs its parent's folder. - A local selected file that cannot be read refuses with the I/O error's own cause rather than the non-UTF-8 message.
…forms
The Gradle content-filter and NuGet central-props loosenings tried to
model Gradle and MSBuild evaluation; review found fail-open paths. Each
now accepts only the exact forms it was written for and fails closed as
before everywhere else.
Gradle: a repository URL counts only as a single literal that is the
whole argument or right-hand side — maven("…"), maven(url = "…"),
url = uri("…"), setUrl("…") — so an Elvis, a conditional, a
concatenation or an identifier makes it claim everything. Content
filters bound only as direct children of the repository block: a
content(action) call, a filter block nested in another closure, or a
filter outside exclusiveContent claims everything. mavenCentral{},
google{}, gradlePluginPortal{} and jcenter{} with a body,
artifactUrls/setArtifactUrls, and repositories.all/repositories.add
make the build's repositories unusable.
NuGet: the only opt-out from central package management is an
unconditional literal ImportDirectoryPackagesProps=false in the single
nearest Directory.Build.props — ManagePackageVersionsCentrally and
project-file settings can be overridden, so they no longer count. A
nuget.config at or above the folder of a .sln/.slnx/.slnf naming a
governed project joins the central sources wherever it sits, and
Directory.Packages.props is collected case-insensitively.
pip: configparser continues a key's value onto indented lines, so every
line of an index-url/extra-index-url value is checked, and a file pip
would reject makes its packages private.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…le filter loosening Gradle goes back to failing every lookup when a build names a repository besides the public ones: three review rounds kept finding fail-open paths in the content-filter loosening, and it could not have helped its motivating case anyway — Spring Boot's buildSrc assigns repository addresses from a variable, so its lookups fail closed regardless. The once-per-build warning naming the file and the redacted repository address stays, as does Spring Boot's Shibboleth shape failing with it. NuGet joins every nuget.config to a shared MSBuild file's sources again, excluding only configs proven inert: no project file and no .sln/.slnx/ .slnf at or below them, or every project there opted out of central package management by its single nearest Directory.Build.props holding an unconditional literal ImportDirectoryPackagesProps false with every import after it proven clean. Aspire's real file imports Sdk.props through the Arcade SDK outside the repository, so it is not proven and that config still joins. An index-url or extra-index-url value containing whitespace is private — pip splits it into several URLs. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…rules The inert-config exclusion and mise's parsed pip and npm settings were judged public where the real tools would read a private source: - an opted-out folder's own shared files - tool manifests - imports after the opt-out - solutions the Count does not select - pip's `--` keys and lone `\r` lines - npm's quoted keys Every nested nuget.config counts again, any pip configuration fails a mise pypi tool, and any registry mention in an .npmrc or .yarnrc.yml fails a mise npm tool.
Merged
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.
Summary
Follow-ups from the audit of trade-offs made for unusual repository practices. They make lookup failures clearer and extraction cheaper. No loosening of the fail-closed registry rules survived review. The loosenings (Gradle content filters, narrower NuGet config scoping, parsed pip/npm settings for mise) each went through review rounds. Every round found inputs that the real tool resolves from a private source while the Count judged them public, so all of them were reverted to main's rules.
gradle.rs,origins.rs,lib.rs): main's rule stands. Any repository besides Maven Central, Google's, the Gradle Plugin Portal orjcenter, however it is filtered, fails every lookup of the build.mavenCentral { … }-style bodies andrepositories.all/add/addAllalso fail closed.maven.setUrl(url)), so its lookups fail either way. A test pins Spring Boot's Shibboleth shape failing with the warning.nuget.rs): main's rule stands. Every nestednuget.configjoins the sources of a shared MSBuild file or a tool manifest.ImportDirectoryPackagesProps=falsemissed several restores that read them. These were shared files inside the opted-out folder,dotnet tool restore, an explicit import after the opt-out, solutions outsidefiles/exclude, and file-based apps. Arcade's realeng/common/internalfile imports through its SDK, so it was not provable anyway.*projextension anddirectory.packages.propscase-insensitively, plus.slnf.mise.rs):uv.toml,pyproject.tomland Cargo configuration are read with the same parsers the pypi and cargo managers use, so lookalike Cargo index hosts andregistry.indexfail. Two checks stay at main's rules:pip.conf/pip.inialways fail. pip accepts--key prefixes, lone\rlines and Unicode case folding.registryin an.npmrc/.yarnrc.ymlfails. npm accepts quoted keys and lone\rlines.wrappersandminimum_release_ageare recognised as harmless keys.${VAR}registries in.npmrc/.yarnrc.ymlget one warning naming the file. An unparseable.yarnrc.ymlfails its lookups.engine,manager): files still named after 16 rounds produce "include chain deeper than 16 rounds starting at …". The old message wrongly said the Count does not read them.api-checker/included build andwrapper.gradle, so itsincludeBuildandapply fromresolve.Not done
write.rstree-fetch skip: the recursive tree fetch on an unchanged base is what repairs leftover files and modes. Skipping it failedrechecks_repair_leftover_files_and_modes_even_when_planned_blobs_matchandforced_batch_recheck_has_no_mutations_and_one_shared_viewer_read.Verification (on the boat VM)
cargo clippy --workspace --all-targets -- -D warnings: cleancargo test -p patchula-manager,mise run test:unit,mise run test:tools: greenmise run corpus:snapshot:tests/corpus-extraction.tsvunchanged