You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4b4b15d
Browse filesBrowse the repository at this point in the historyBrowse files
* Start fix for #903, #904, #905
Assisted-by: Claude Code:claude-opus-5-5
* Read BOM-prefixed pnpm locks and workspace files
A pnpm-lock.yaml or pnpm-workspace.yaml saved with a UTF-8 BOM (as
Windows editors do with "UTF-8 with signature") is read normally by
pnpm, but socket-patch's pnpm readers matched column-0 text and missed
the first line:
- hosted scan skipped the trustLockfile auto-config, so frozen pnpm
11/12 installs failed; rollback, remove and list then refused the
lock the scan had just pinned, and vendored mode refused it as
having no lockfileVersion (#903)
- a BOM first key in pnpm-workspace.yaml was missed, so hosted and
vendored appended a duplicate trustLockfile / overrides key that
pnpm refuses to parse (#904)
Add formats::text with one split_bom/strip_bom pair, replace the four
named copies with it, and make the pnpm lock sniffs and the workspace
key reader skip one leading BOM. Splices keep the original line, so
the BOM stays byte-exact. lockfileDir is now read through the same
workspace key reader (#905).
Assisted-by: Claude Code:claude-opus-5-5
* Test hosted pnpm scan/rollback on BOM files
Covers the #903 and #904 user flows end to end: a BOM lock gets the
trustLockfile auto-config and rolls back byte-exact, and a BOM first
trustLockfile key in pnpm-workspace.yaml is respected instead of
duplicated.
Assisted-by: Claude Code:claude-opus-5-5
* Route Gradle digests through utils::digest
main has failed socket-patch-core's lib tests since Gradle support
(#646) and the digest helpers (#865) both landed. The guard test
production_digests_go_through_the_helpers flags three files #646 added
that still hash inline: crawlers/gradle_cache.rs, patch/jvm_jar.rs and
patch/sidecars/maven.rs. That breaks test, test-release and coverage on
every open PR.
Each inline sha1/sha256 call now goes through sha1_hex_of or
sha256_hex_of, which compute the same lowercase hex. Behaviour is
unchanged.
Assisted-by: Claude Code:claude-opus-5-5
(cherry picked from commit 659ac2c)
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments