Repository navigation
fix(scan): generate facts without downloads under --reach-disable-dependency-downloads - #1778
Conversation
…endency-downloads A reachability scan with --reach-disable-dependency-downloads passed the option only to Coana's analysis, so the build tools resolving its facts first still downloaded. Facts generation now asks Coana for the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndency-downloads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…facts socket scan reach takes the option too, so its facts generation now resolves from the build tools' caches as scan create's does. Generating facts without downloads needs Coana 15.15.8, the first release whose generate-socket-facts takes --disable-dependency-downloads, so an older --reach-version fails with a clear message instead of an unknown option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c8f85b9 to
3ebb976
Compare
PR SummaryLow Risk Overview
Tests cover Coana argv, minimum version selection, and scan-handler context propagation. The changelog documents the behavior under Unreleased Fixed. Reviewed by Cursor Bugbot for commit 3ebb976. Configure here. |
Oskar Haarklou Veileborg (BarrensZeppelin)
left a comment
There was a problem hiding this comment.
[agent] Looks good. The inline comments are simplification opportunities only; nothing in this review hunts for correctness bugs.
…facts generation Coana's generate-socket-facts takes --disable-dependency-downloads for any purpose, and the reach-only rule already lives in the CLI's flag validation, so the scan handlers pass the option through unchanged. Coana's --disable-dependency-downloads is now one shared constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the changelog entry under a new Unreleased heading, since 1.18.1 was released from the block it was in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Heads up, reviewer
[Edit me, human!]
Claude Code · claude-opus-5-5
With
--reach-disable-dependency-downloads,socket scan create --reachandsocket scan reachnow ask Coana to generate their Socket facts without downloads too, so Gradle, Maven, sbt and .NET builds resolve from the user's own caches. Before, only Coana's analysis got the option, and facts generation ahead of it still downloaded.The option needs Coana 15.15.8 (coana-tech/coana-package-manager#2880), which #1780 pinned. An older
--reach-versionfails with a clear message instead of an unknown option.Tests
run-manifest-facts.test.mts: listing and generating pass--disable-dependency-downloadsand require Coana 15.15.8 only when the context disables downloads.handle-create-new-scan.test.mts: a reachability scan with the option disables downloads in the context.handle-scan-reach.test.mts: the context disables downloads exactly when the option is set.socket scan reach --dynamic-sbom-inferenceon a Maven project with an isolated local repository: with the option, Coana 15.15.7 is refused, and 15.15.8 reports an uncached dependency as unresolved in offline mode without downloading it, then succeeds once it is cached; without the option it downloads.🤖 Generated with Claude Code