Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: vscode-extensions.rust-lang.rust-analyzer #382845

Closed
3 tasks done
DarkKirb opened this issue Feb 17, 2025 · 1 comment · Fixed by #383049
Closed
3 tasks done

Build failure: vscode-extensions.rust-lang.rust-analyzer #382845

DarkKirb opened this issue Feb 17, 2025 · 1 comment · Fixed by #383049
Labels
0.kind: build failure A package fails to build

Comments

@DarkKirb
Copy link
Contributor

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

nix build github:nixos/nixpkgs#vscode-extensions.rust-lang.rust-analyzer

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/290086117

Relevant log output

\|/-npm error code 1
-npm error path /nix/store/hff1p24w679qsjzvrashshw8milhwfh5-rust-analyzer-0.3.2029/lib/node_modules/rust-analyzer/node_modules/@vscode/vsce-sign
-npm error command failed
-npm error command sh -c node ./src/postinstall.js
-npm error [@vscode/vsce-sign] Failed to find package "@vscode/vsce-sign-darwin-arm64" on the file system
npm error
npm error This can happen if you use the "--no-optional" flag. The "optionalDependencies"
npm error package.json feature is used to install the correct binary executable
npm error for your current platform. This install script will now attempt to work around
npm error this. If that fails, you need to remove the "--no-optional" flag to use @vscode/vsce-sign.
npm error
npm error [@vscode/vsce-sign] Trying to install package "@vscode/vsce-sign-darwin-arm64" using npm
npm error [@vscode/vsce-sign] Failed to install package "@vscode/vsce-sign-darwin-arm64" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false @vscode/[email protected]
npm error npm error code ENOTCACHED
npm error npm error request to https://registry.npmjs.org/@vscode%2fvsce-sign-darwin-arm64 failed: cache mode is 'only-if-cached' but no cached response is available.
npm error npm error A complete log of this run can be found in: /private/tmp/nix-build-rust-analyzer-0.3.2029.drv-0/.npm/_logs/2025-02-16T22_11_58_077Z-debug-0.log
npm error
npm error [@vscode/vsce-sign] Trying to download "https://registry.npmjs.org/@vscode/vsce-sign-darwin-arm64/-/vsce-sign-darwin-arm64-2.0.2.tgz"
npm error [@vscode/vsce-sign] Failed to download "https://registry.npmjs.org/@vscode/vsce-sign-darwin-arm64/-/vsce-sign-darwin-arm64-2.0.2.tgz": unable to get local issuer certificate
npm error Failed to install package "@vscode/vsce-sign-darwin-arm64"
-npm error A complete log of this run can be found in: /private/tmp/nix-build-rust-analyzer-0.3.2029.drv-0/.npm/_logs/2025-02-16T22_11_57_670Z-debug-0.log

Additional context

Regression in #382557, it removed the “optional” packages that the build depends on. May be caused in some change in node2nix, because regenerating the node-packages.nix file did not fix it.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.2, NixOS, 25.05 (Warbler), 25.05.20250216.1dcdd53
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.93.0-dev-pre20250212-1e67910
    System type: x86_64-linux
    Additional system types: aarch64-linux, armv7l-linux, i686-linux, powerpc-linux, powerpc64-linux, powerpc64le-linux, riscv32-linux, riscv64-linux, wasm32-wasi
    Features: gc, signed-caches
    System configuration file: /etc/nix/nix.conf
    User configuration files: /home/darkkirb/.config/nix/nix.conf:/nix/store/iyy358zqcqg64njghmv0dgsca43d3sqd-stylix-kde-config/nix/nix.conf:/nix/store/0qkqq33qp8rpry9zzkn1dzciz0w4m7ky-plasma-workspace-6.3.0/etc/xdg/nix/nix.conf:/nix/store/9prv5m9rlbcg31f5h2q4s0c50yyzix8b-kglobalacceld-6.3.0/etc/xdg/nix/nix.conf:/nix/store/mqkwm7lysk2b3gq0ldlp40134l3axjyd-baloo-6.10.0/etc/xdg/nix/nix.conf:/home/darkkirb/.config/kdedefaults/nix/nix.conf:/nix/store/0qkqq33qp8rpry9zzkn1dzciz0w4m7ky-plasma-workspace-6.3.0/etc/xdg/nix/nix.conf:/nix/store/9prv5m9rlbcg31f5h2q4s0c50yyzix8b-kglobalacceld-6.3.0/etc/xdg/nix/nix.conf:/nix/store/mqkwm7lysk2b3gq0ldlp40134l3axjyd-baloo-6.10.0/etc/xdg/nix/nix.conf:/nix/store/0qkqq33qp8rpry9zzkn1dzciz0w4m7ky-plasma-workspace-6.3.0/etc/xdg/nix/nix.conf:/nix/store/9prv5m9rlbcg31f5h2q4s0c50yyzix8b-kglobalacceld-6.3.0/etc/xdg/nix/nix.conf:/nix/store/mqkwm7lysk2b3gq0ldlp40134l3axjyd-baloo-6.10.0/etc/xdg/nix/nix.conf:/home/darkkirb/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/darkkirb/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/darkkirb/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/darkkirb/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
    Store directory: /nix/store
    State directory: /nix/var/nix
    Data directory: /nix/store/4qm17gijpw5gvrchp1376cwxy26b3r4a-lix-2.93.0-dev-pre20250212-1e67910/share`
  • nixpkgs: /etc/nix/inputs/nixpkgs

Notify maintainers

[package has no maintainers listed]
@mweinelt


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@DarkKirb DarkKirb added the 0.kind: build failure A package fails to build label Feb 17, 2025
@SuperSandro2000
Copy link
Member

Please repackage this outside of nodePackages as that is deprecated.

DarkKirb added a commit to DarkKirb/nixpkgs that referenced this issue Feb 18, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
nanoyaki added a commit to nanoyaki/flake that referenced this issue Feb 20, 2025
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this issue Feb 20, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
auguwu added a commit to auguwu/nixos-config that referenced this issue Feb 21, 2025
karaolidis pushed a commit to karaolidis/nixpkgs that referenced this issue Feb 22, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
karaolidis pushed a commit to karaolidis/nixpkgs that referenced this issue Feb 22, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
cmm pushed a commit to cmm/nixpkgs that referenced this issue Feb 23, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this issue Feb 23, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this issue Feb 24, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this issue Feb 24, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this issue Feb 24, 2025
The existing node2nix-based build was broken with NixOS#382557. I could not
salvage it, however apparently it is considered the deprecated way of
building node packages in nixpkgs.

This commit moves rust-analyzer’s vsix build to buildNpmPackage.

Fixes: NixOS#382845
Part-Of: NixOS#229475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants