Repository navigation
fix(install): verify archives in homes with backslashes or newlines - #25240
maria-rcks wants to merge 1 commit into
Conversation
Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
|
Warning Review limit reachedOnly developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing. Next included review available in 14 minutes. View limit details
Comment |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, self-contained installer fix that preserves normal checksum behavior while supporting homes with backslashes or newlines. The accompanying integration tests cover both checksum implementations and failure handling without changing production behavior outside the targeted bug fix. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by Verified in a real dev environmentresult: the checksum fix works, but backslash-home installation is still broken end to end with the real published v0.1.3 linux-x64 executable. no code changes or pushes.
short command transcript: full installer runtime transcript Not verifiednative macos/windows, desktop electron, ios/android, and linux arm64 were not exercised on this linux-x64 vm. a newly built release containing this pr was not published or tested; installer checks used official v0.1.3 release bytes. end-to-end backslash-home use is blocked by the published executable's loader crash described above. provider turns ran against the pr dev server in an ordinary isolated home, not a backslash home. this pr has no visual ui changes, so before/after ui screenshots do not apply. uploaded recording playback and seeking were checked in t3's browser player. |
|
Note Written by Verified in a real dev environmentresult: checksum verification works, but backslash-home installation still fails end to end with the current published v0.1.5 linux-x64 executable. no code changes or pushes.
Not verifiednative macos/windows, electron, ios/android, and linux arm64 were not exercised on this linux-x64 vm. no newly built release containing this pr was published or tested. provider turns ran through the pr dev server in an ordinary isolated home, not through a release installed in a special home. backslash-home use is blocked by the real published executable's loader crash above. this pr has no visual ui changes, so matching before/after ui screenshots do not apply. captures were inspected; uploaded video playback through completion and seeking were checked in t3's browser player. |
…upstream pingdotgg#25240) Cherry-picked from pingdotgg#25240 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream pingdotgg#12025, pingdotgg#24320, pingdotgg#25181 and pingdotgg#25240 added strings and test expectations that still say T3 Code, and pingdotgg#23561/pingdotgg#24320 left issue numbers in comments that the low-value-comment lint rejects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>



Problem
The installer rejects valid releases when
T3CODE_HOMEcontains a backslash or newline. Both checksum tools escape those filenames and prefix their output with a backslash, corrupting the parsed digest.Change
Hash stdin with
sha256sumandshasum -a 256. Keep exact digest comparison and invalid-checksum rejection unchanged. Add regression cases to the existing installer test file, using each available checksum tool in isolation.Verification
checksum mismatch; invalid digests remain rejected.vp test run scripts/install.test.ts, scripts typecheck, andvp run check:changed HEAD(format, lint, knip, typecheck, installer tests).6de43e878f943ba39addead9fe3c7d3fc7f9d195with no findings.Takeover
Replaces #22415, with thanks to @Lucenx9 for the original implementation.
Built with GPT-6.1-Sol in the Codex harness on T3 Code.