guix_mirror_bot pushed a commit to branch javascript-team in repository guix.
commit c4b3208debecc005afa00101bba54465c32c2a08 Author: Jelle Licht <[email protected]> AuthorDate: Mon Oct 13 11:15:26 2025 +0200 build-system: node: Use file:// prefix for local dependencies. Using the file:// prefix for local packages was always allowed, and since npm version 11 required in order to properly resolve local dependencies when installing from tarballs. * guix/build/node-build-system.scm (index-modules): Add "file://" prefix to hash table values for local modules. Change-Id: I9d95a5d6788cc918b94677b4524391617e3a73b4 --- guix/build/node-build-system.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index 4003cbea41..8c59ec086a 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -213,7 +213,8 @@ only after the 'patch-dependencies' phase." (for-each (lambda (dir) (let ((nm (string-append dir "/lib/node_modules"))) (for-each (lambda (module) - (hash-set! index (module-name module) module)) + (hash-set! index (module-name module) + (string-append "file://" module))) (list-modules nm)))) input-paths) index))
