Repository navigation
Commit 6a5a9da
* Start gem revert fix for a removed dependency
Refs #2325.
Assisted-by: Claude Code:claude-fable-5-2
* Add failing tests for a dropped vendored gem
After bundle remove, or a move to another release, neither the
Gemfile nor Gemfile.lock names the vendored copy. The gem revert
still reports the entry as drift and keeps the copy and the ledger
record on every run. Three of the unit tests and the end-to-end
test fail until the revert learns that case.
Refs #2325.
Assisted-by: Claude Code:claude-fable-5-2
* Clean up a vendored gem the project dropped
The gem revert called every record it could not restore drift and
kept the copy and the ledger record. After bundle remove, or a move
of the gem to another release, nothing can undo that drift, so
rollback, remove, vendor --revert and scan --prune kept the entry
for good and vendor --check stayed red.
When neither the Gemfile nor Gemfile.lock names the entry's copy
directory in any spelling, such a record now warns
vendor_lock_entry_removed, as the other backends do. Both files
stay as the user left them and the copy is removed. A file that
still names the copy, or that cannot be read, keeps it as drift.
Fixes #2325.
Assisted-by: Claude Code:claude-fable-5-2
* Hold the dropped-gem audit to what each undo leaves
rollback and vendor --revert keep the manifest's patch, so the
audit that follows reports it as not vendored. Only remove leaves
nothing for the audit to report.
Refs #2325.
Assisted-by: Claude Code:claude-fable-5-2
* Keep a gem entry wired under another patch uuid
A Gemfile and lock that route the gem through a vendored copy of
another patch uuid (an interrupted re-vendor, a merge that kept an
older ledger) no longer read as a dropped gem: the project is still
vendored and the entry may hold the only pre-vendor originals, so
the revert keeps it as drift.
The removed warning no longer states one cause for every case, the
contract says an unreadable file fails the revert, and the
end-to-end test re-locks after bundle remove, which Bundler 2.1
and older leave to the next install.
Refs #2325.
Assisted-by: Claude Code:claude-fable-5-2
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0120126 commit 6a5a9da
3 files changed
Lines changed: 453 additions & 6 deletions
File tree
- crates
- socket-patch-cli
- tests
- socket-patch-core/src/vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1879 | 1879 | | |
1880 | 1880 | | |
1881 | 1881 | | |
1882 | | - | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1883 | 1889 | | |
1884 | 1890 | | |
1885 | 1891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2228 | 2228 | | |
2229 | 2229 | | |
2230 | 2230 | | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
2231 | 2359 | | |
2232 | 2360 | | |
2233 | 2361 | | |
| |||
0 commit comments