[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:
From: |
Jelle Licht |
Subject: |
[bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies. |
Date: |
Tue, 23 Nov 2021 12:04:47 +0100 |
Hey Philip,
Philip McGrath <philip@philipmcgrath.com> writes:
> gnu/packages/node.scm (node-llparse-builder-bootstrap)[arguments]: Add
> `#:absent-dependencies`. Stop deleting the `'configure` phase.
> Add a new phase `#:delete-package-lock` to remove the
> problematic "package-lock.json".
> ---
> gnu/packages/node.scm | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
> index 98a51276e7..9d4903a8ca 100644
> --- a/gnu/packages/node.scm
> +++ b/gnu/packages/node.scm
> @@ -479,9 +479,21 @@ (define-public node-llparse-builder-bootstrap
> (arguments
> `(#:node ,node-bootstrap
> #:tests? #f
> + #:absent-dependencies
> + `("@types/mocha"
> + "@types/node"
> + "mocha"
> + "ts-node"
> + "tslint"
> + "typescript")
> #:phases
> (modify-phases %standard-phases
> - (delete 'configure)
> + (add-before 'configure 'remove-package-lock
> + ;; Having package-lock.json seems to cause npm
> + ;; to look for things on the internet in the configure phase,
> + ;; even if we have them properly installed.
package-lock.json lists exact versions _and integrity hashes_; since it
seems unlikely that after node-build-system's finaggling we end up with
an identical hash, we will always have a mismatch and fetch 'proper'
sources online accordingly. As far as npm + package-lock.json are
concerned, we don't have them properly installed.
>From what I have seen package-lock.json offers us no benefits (because
we track exact dependency information via the guix store) and can (as
you have seen) prevent builds from working. My 2c: always remove it in a
phase in the build system. It's simply a preference though, so your
please go with what you think is the right choice. You might want to
update the comment nonetheless so it's clear we know what's going on.
> + (lambda args
> + (delete-file-recursively "package-lock.json")))
> (replace 'build
> (lambda* (#:key inputs #:allow-other-keys)
> (let ((esbuild (string-append (assoc-ref inputs "esbuild")
> --
> 2.32.0
- [bug#51838] [PATCH v2 16/26] gnu: node-irc-colors: Use #:absent-dependencies., (continued)
- [bug#51838] [PATCH v2 16/26] gnu: node-irc-colors: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 08/26] gnu: node-binary-search-bootstrap: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 02/26] gnu: node: Update to 10.24.1 for bootstrapping., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 09/26] gnu: node-debug-bootstrap: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 19/26] gnu: Add node-inherits., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 15/26] gnu: node-once: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 13/26] gnu: node-semver: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies., Liliana Marie Prikler, 2021/11/20
- [bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies., Philip McGrath, 2021/11/20
- [bug#51838] [PATCH v2 10/26] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies.,
Jelle Licht <=
- [bug#51838] [PATCH 00/11] guix: node-build-system: Support compiling add-ons with node-gyp., Timothy Sample, 2021/11/28
- [bug#51838] [PATCH v2 20/26] gnu: Add node-safe-buffer., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 12/26] gnu: node-llparse-bootstrap: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 18/26] guix: node-build-system: Add optional #:libuv? argument., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 18/26] guix: node-build-system: Add optional #:libuv? argument., Liliana Marie Prikler, 2021/11/20
- [bug#51838] [PATCH v2 18/26] guix: node-build-system: Add optional #:libuv? argument., Philip McGrath, 2021/11/20
- [bug#51838] [PATCH v2 14/26] gnu: node-wrappy: Use #:absent-dependencies., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 21/26] gnu: Add node-string-decoder., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 22/26] gnu: Add node-readable-stream., Philip McGrath, 2021/11/19
- [bug#51838] [PATCH v2 24/26] gnu: Add node-openzwave-shared., Philip McGrath, 2021/11/19