Repository navigation
Commit 2677eda
* Remove --download-mode and the diff download path (#792)
Patch content is now always fetched as per-file blobs. v5 has not
shipped stable, so the deprecated diff path goes before it does.
Core:
- delete patch/diff.rs (bspatch) and the qbsdiff dependency
- apply: drop the diff strategy, AppliedVia::Diff,
PatchSources::diffs_path and the now-unused `uuid` parameter of
apply_package_patch / apply_go_redirect
- blob_fetcher: drop DownloadMode, get_missing_archives and
fetch_missing_sources; download_entries is blob-only. DIFF_ARCHIVE
stays as the noun for the obsolete-archive sweep output
- client: drop fetch_diff
- package.rs: drop read_archive_filtered only; the other readers are
used by the vendored and hosted backends
- cleanup: .socket/diffs is obsolete like .socket/packages and every
file in it is swept
- telemetry: patch_fetched keeps download_mode, always "file"
CLI:
- remove --download-mode / SOCKET_DOWNLOAD_MODE outright (no alias,
no warning), matching how #966 removes deprecated spellings
- fetch_stage stages blobs only; with every afterHash blob staged up
front, apply's mismatch-blob top-up is dead and is removed
- repair downloads blobs only; the Downloaded event keeps
details.mode, always "file"
- appliedVia is always "blob"
Tests: delete the diff e2e suites and diff/mode parse tests, add
removal parse tests, a cold-cache no-/diff-request assertion and a
stale referenced .socket/diffs archive sweep check.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Document the --download-mode removal for v5 (#792)
CLI_CONTRACT.md: drop the flag and env rows, note the removal, make
appliedVia "blob" only, and mark .socket/diffs obsolete in the GC
notes. migrating-to-v5.md: add the Retired spellings row and say
.socket/diffs archives are no longer read.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Update the GlobalArgs field count after removing download_mode (#792)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Drop stale references left by the diff path removal (#792)
Remove the deleted diff_created_file_e2e.rs from the bare-spawn ratchet
(its stale-entry check failed), point leftover comments at the blob-only
pipeline, and test repair's download messages with the blob noun.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Stop logging the archive uuid in a remove test assert (#792)
CodeQL flags the uuid as sensitive (cleartext logging); label the
entries A/B in the assert message instead.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Retrigger CI after a CodeQL SARIF upload infra failure (#792)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Keep per-blob download failure reasons under --silent apply
With the diff download path gone, per-item blob failures print only via
format_fetch_summary, which is gated on quiet (--silent or --json). A
fatal staging failure under --silent then printed the generic error
without the hash and reason lines the old deferred-failure path showed
(Bugbot 4223475496). Print format_fetch_failures before the error when
the summary was held back; --json stays silent on stderr.
Co-Authored-By: Claude <noreply@anthropic.com>
* Drop --download-mode from the repair org-fallback test
The test came in from main with #1041 and still passed --download-mode
file, which this PR removes, so repair rejected the argument and CI
went red on the main merge. Repair always fetches per-file blobs now,
so the flag is simply dropped.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Drop removed download_mode field from target-ambiguity test
main's new in_process_target_ambiguity test (#1034) sets
GlobalArgs::download_mode, which this PR deletes, so the merge at
d06ce6f does not compile the cli test targets.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 50e4654 commit 2677eda
85 files changed
Lines changed: 506 additions & 5097 deletions
File tree
- crates
- socket-patch-cli
- src
- commands
- scan
- vendored_backend
- tests
- apply
- cli
- get
- in_process_vendor
- prebuilt_common
- remove
- repair
- rollback
- scan
- socket-patch-core
- src
- api
- manifest
- patch
- redirect
- vendor
- tests
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 134 | | |
144 | 135 | | |
145 | 136 | | |
| |||
0 commit comments