* [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too.
@ 2023-06-21 8:38 Lars-Dominik Braun
2023-06-22 9:29 ` Jelle Licht
0 siblings, 1 reply; 5+ messages in thread
From: Lars-Dominik Braun @ 2023-06-21 8:38 UTC (permalink / raw)
To: 64203; +Cc: jlicht
* guix/build/node-build-system.scm (delete-dependencies): Remove supplied
dependencies from peerDependencies field too.
---
Hi,
this is required to build a new RStudio. I’m also validating it does
not break anything here: https://ci.guix.gnu.org/jobset/node-peerdeps
Cheers,
Lars
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 93f7efbb2b..fb23894bc1 100644
--- a/guix/build/node-build-system.scm
+++ b/guix/build/node-build-system.scm
@@ -208,7 +208,8 @@ (define (delete-dependencies absent)
(jsobject-update*
pkg-meta
`("devDependencies" ,delete-from-jsobject (@))
- `("dependencies" ,delete-from-jsobject (@))))))
+ `("dependencies" ,delete-from-jsobject (@))
+ `("peerDependencies" ,delete-from-jsobject (@))))))
(define* (delete-lockfiles #:key inputs #:allow-other-keys)
"Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they
base-commit: 1a0ff5cd83d3257efcab64740a1322de51fbc4a1
--
2.39.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too.
2023-06-21 8:38 [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too Lars-Dominik Braun
@ 2023-06-22 9:29 ` Jelle Licht
2023-06-22 10:05 ` Lars-Dominik Braun
0 siblings, 1 reply; 5+ messages in thread
From: Jelle Licht @ 2023-06-22 9:29 UTC (permalink / raw)
To: Lars-Dominik Braun, 64203
Lars-Dominik Braun <lars@6xq.net> writes:
> * guix/build/node-build-system.scm (delete-dependencies): Remove supplied
> dependencies from peerDependencies field too.
> ---
>
> Hi,
>
> this is required to build a new RStudio. I’m also validating it does
> not break anything here: https://ci.guix.gnu.org/jobset/node-peerdeps
LGTM. You can consider adding a note to the commit message that thix
needed due to a change in how more recent npm versions deal with
peerDependencies.
Cheers,
- Jelle
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too.
2023-06-22 9:29 ` Jelle Licht
@ 2023-06-22 10:05 ` Lars-Dominik Braun
2023-06-22 10:23 ` Jelle Licht
0 siblings, 1 reply; 5+ messages in thread
From: Lars-Dominik Braun @ 2023-06-22 10:05 UTC (permalink / raw)
To: Jelle Licht; +Cc: 64203
Hi,
> LGTM. You can consider adding a note to the commit message that thix
> needed due to a change in how more recent npm versions deal with
> peerDependencies.
I don’t know anything about that change in npm unfortunately – this
is purely based on observations of failed builds. Do you have further
information on this?
Thanks,
Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too.
2023-06-22 10:05 ` Lars-Dominik Braun
@ 2023-06-22 10:23 ` Jelle Licht
2023-06-22 11:04 ` bug#64203: " Lars-Dominik Braun
0 siblings, 1 reply; 5+ messages in thread
From: Jelle Licht @ 2023-06-22 10:23 UTC (permalink / raw)
To: Lars-Dominik Braun; +Cc: 64203
Lars-Dominik Braun <lars@6xq.net> writes:
> Hi,
>
>> LGTM. You can consider adding a note to the commit message that thix
>> needed due to a change in how more recent npm versions deal with
>> peerDependencies.
>
> I don’t know anything about that change in npm unfortunately – this
> is purely based on observations of failed builds. Do you have further
> information on this?
The previous version of node we had packaged guix was v14, which came
with npm v6. The most recent version of node we have packaged in guix is
v18, which comes with npm v9.
From [1]: "In npm versions 3 through 6, peerDependencies were not
automatically installed, and would raise a warning if an invalid version
of the peer dependency was found in the tree. As of npm v7,
peerDependencies are installed by default."
HTH!
- Jelle
[1]: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependencies:
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#64203: [PATCH] guix: node-build-system: Delete from peerDependencies too.
2023-06-22 10:23 ` Jelle Licht
@ 2023-06-22 11:04 ` Lars-Dominik Braun
0 siblings, 0 replies; 5+ messages in thread
From: Lars-Dominik Braun @ 2023-06-22 11:04 UTC (permalink / raw)
To: Jelle Licht; +Cc: 64203-done
Hi,
> The previous version of node we had packaged guix was v14, which came
> with npm v6. The most recent version of node we have packaged in guix is
> v18, which comes with npm v9.
>
> From [1]: "In npm versions 3 through 6, peerDependencies were not
> automatically installed, and would raise a warning if an invalid version
> of the peer dependency was found in the tree. As of npm v7,
> peerDependencies are installed by default."
thanks! Pushed to master as 37c2e94cec6cb8b5e0e93e7b6c712c3b187ca5db.
Cheers,
Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-22 11:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 8:38 [bug#64203] [PATCH] guix: node-build-system: Delete from peerDependencies too Lars-Dominik Braun
2023-06-22 9:29 ` Jelle Licht
2023-06-22 10:05 ` Lars-Dominik Braun
2023-06-22 10:23 ` Jelle Licht
2023-06-22 11:04 ` bug#64203: " Lars-Dominik Braun
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.