GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix migration wipe of revert wiring in pnpm vendor · SocketDev/socket-patch@d243919

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • crates/socket-patch-core/src/vendor
    • pnpm_lock.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎crates/socket-patch-core/src/vendor/pnpm_lock.rs‎

Copy file name to clipboardExpand all lines: crates/socket-patch-core/src/vendor/pnpm_lock.rs
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,14 @@ pub async fn vendor_pnpm(
271271
Err(e) => return done_failure(purl, format!("{PNPM_WORKSPACE} surgery failed: {e}")),
272272
};
273273

274-
if !pkg_changed && !lock_changed && ws_edit.new_text.is_none() {
275-
// Everything already carries this uuid + the packed integrity: the
276-
// project is in sync. The tarball re-pack above was byte-identical
277-
// by determinism; synthesize AlreadyPatched and record nothing (the
278-
// existing ledger entry stays authoritative).
274+
if !pkg_changed && !lock_changed {
275+
// package.json and the lock already carry this uuid + the packed
276+
// integrity: the core wiring is in sync. The tarball re-pack above was
277+
// byte-identical by determinism. Even if the workspace file (pnpm >= 11
278+
// surface) needs first-time creation during migration, that must not
279+
// replace the ledger entry and wipe package.json/lock revert wiring.
280+
// Synthesize AlreadyPatched and record nothing (the existing ledger
281+
// entry stays authoritative).
279282
return done(
280283
already_patched_result(purl, &project_root.join(&rel_tgz), &record.files),
281284
None,

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.