ci / protondrive (push) Successful in 23m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Task 19: Remove the old libraries
Files:
- Delete:
backend/protondrive/crypto_diff_internal_test.go - Keep:
backend/protondrive/testdata/oldlib/and moveTestFrozenFixturesandTestFrozenFileFixtureintocrypto_internal_test.go/download_internal_test.go(they need no old-library import). - Modify:
go.mod,go.sum
Read "Notes for Tasks 18 to 21" in the handoff before starting:
masteris no longer the old backend,TestFrozenFileFixturehas already moved, anddocs/TODO.mdhas the accurate list of what to keep and delete.
- Step 1: Record the current binary size:
git stash -uis not allowed - instead buildmasterin a worktree:git worktree add ../rclone-master master && (cd ../rclone-master && go build -o /tmp/rclone-old .), notestat -c %s /tmp/rclone-old, thengit worktree remove ../rclone-master. - Step 2: Move the frozen-fixture tests, delete the differential
file,
go mod tidy. - Step 3: Verify:
grep -c 'Proton-API-Bridge\|rclone/go-proton-api\|replace' go.modprints 0;go build -o /tmp/rclone-new . && stat -c %s /tmp/rclone-newis not larger than the old size;go test -race ./backend/protondrive/...passes;go run bin/cross-compile.go -compile-only(seeMakefiletargetcompile_allfor the exact flags) succeeds for all targets;RCLONE_CONFIG=/notfound go test ./...has no new failures compared with the list indocs/TODO.md. - Step 4: Commit
protondrive: drop Proton-API-Bridge and go-proton-api.