summaryrefslogtreecommitdiff
path: root/guix/build/node-build-system.scm
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2025-10-13 11:15:26 +0200
committerJelle Licht <jlicht@fsfe.org>2025-10-13 11:20:27 +0200
commitc4b3208debecc005afa00101bba54465c32c2a08 (patch)
treeb8816fc99902250aaa74856fa5a36e2846450841 /guix/build/node-build-system.scm
parentf7a735d270229fcee9d09b4ab1be8a6e5ffd3919 (diff)
build-system: node: Use file:// prefix for local dependencies.javascript-team
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
Diffstat (limited to 'guix/build/node-build-system.scm')
-rw-r--r--guix/build/node-build-system.scm3
1 files changed, 2 insertions, 1 deletions
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))