Skip to content

fix(export-dynamic): pack dist-dynamic from a hardlink-free copy so npm 11 no longer crashes - #161

Merged
gashcrumb merged 1 commit into
redhat-developer:mainfrom
PatAKnight:npm-pack-bug
Sep 10, 2026
Merged

fix(export-dynamic): pack dist-dynamic from a hardlink-free copy so npm 11 no longer crashes#161
gashcrumb merged 1 commit into
redhat-developer:mainfrom
PatAKnight:npm-pack-bug

Conversation

@PatAKnight

Copy link
Copy Markdown
Member

Summary

  • Overlay /publish was exporting and pushing OCI images, then failing while npm packing backend dist-dynamic archives (Exit handler never called! on Node 24 / npm 11).
  • Example: rhdh-plugin-export-overlays#3468 (servicenow workspace). Images for plugins/servicenow and plugins/servicenow-backend published; the backend .tgz archive then failed on npm pack.
  • Yarn nmMode: hardlinks-local leaves bundled node_modules with hardlinks. plugin package already copies that tree first (which breaks hardlinks); the archive step packed in place and hit the crash.
  • Stage dist-dynamic with cp -r into a short /tmp dir, npm pack from the copy (--json + --foreground-scripts=false), then always delete the temp dir. Integrity sidecar parsing is unchanged.

…pm 11 no longer crashes

Signed-off-by: Patrick Knight <pknight@redhat.com>
@sonarqubecloud

Copy link
Copy Markdown

@gashcrumb
gashcrumb merged commit fd0ca35 into redhat-developer:main Sep 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants