NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.64k stars 13.8k forks source link

Build failure: svelte-language-server #315134

Closed Suyashtnt closed 4 months ago

Suyashtnt commented 4 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build svelte-language-server

Build log

personal-website on  feat/mastercss [+] via  impure (nix-shell-env) took 7s
❯ : nix log /nix/store/ygnn4c3l8agxrzcv1mw9ryiy2xb7ybpv-svelte-language-server-0.16.9.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/ygnn4c3l8agxrzcv1mw9ryiy2xb7ybpv-svelte-language-server-0.16.9.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/nd1hh4va7s7l7mlnv08aba05igc1kzjx-svelte-language-server-0.16.9.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 499162500 of file package/tsconfig.json
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
no Makefile or custom buildPhase, doing nothing
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
no Makefile or custom installPhase, doing nothing
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase

Builder called die: Cannot wrap '/nix/store/jni096d00h9dha2gqlsfqhgjm16ml1j9-svelte-language-server-0.16.9/bin/svelteserver' >
Backtrace:
7 assertExecutable /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
217 wrapProgramShell /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
212 wrapProgram /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
114 _callImplicitHook /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
131 _eval /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
74 runHook /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1435 fixupPhase /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1579 runPhase /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1620 genericBuild /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
4 main /nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh

...skipping...
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/nd1hh4va7s7l7mlnv08aba05igc1kzjx-svelte-language-server-0.16.9.tgz
source root is package
setting SOURCE_DATE_EPOCH to timestamp 499162500 of file package/tsconfig.json
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
no Makefile or custom buildPhase, doing nothing
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
no Makefile or custom installPhase, doing nothing
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase

Builder called die: Cannot wrap '/nix/store/jni096d00h9dha2gqlsfqhgjm16ml1j9-svelte-language-server-0.16.9/bin/svelteserver' because it is not an executable file
Backtrace:
7 assertExecutable /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
217 wrapProgramShell /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
212 wrapProgram /nix/store/1bmd2z777d232v0ikizk1h46vq881q0k-make-shell-wrapper-hook/nix-support/setup-hook
114 _callImplicitHook /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
131 _eval /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
74 runHook /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1435 fixupPhase /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1579 runPhase /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
1620 genericBuild /nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup
4 main /nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh

Additional context

Add any other context about the problem here.

Notify maintainers

@purepani @SuperSandro2000 (Latest git log)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

personal-website on  feat/mastercss [+] via  impure (nix-shell-env) took 1m16s
❯ : nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.1, NixOS, 24.11 (Vicuña), 24.11.20240524.bfb7a88`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(tntman): `"nixos"`
 - nixpkgs: `/nix/store/z71lmgd0ydfnax1b13zbrls5idf1y7ak-source`

Add a :+1: reaction to issues you find important.

purepani commented 4 months ago

I seem to be able to build it without issue with

nix build nixpkgs#svelte-language-server --rebuild

It looks like you're building a personal website with the package; could you try the command above if you have flakes enabled by chance, or the equivalent nix-build command?

It looks like the reason is that the svelteserver binary isn't being marked as an executable, which is weird since it's definitely an executable when I build it.

honnip commented 4 months ago
->> curl https://cache.nixos.org/67sgw1jgshmkq1848irrhn45490izz0x.narinfo
StorePath: /nix/store/67sgw1jgshmkq1848irrhn45490izz0x-svelte-language-server-0.16.9
URL: nar/0d09p6h6jzh63m5ris18ndnxs5bcrf3lks45s6ap80ijnbffi259.nar.xz
Compression: xz
FileHash: sha256:0d09p6h6jzh63m5ris18ndnxs5bcrf3lks45s6ap80ijnbffi259
FileSize: 6390940
NarHash: sha256:1yw2pqjcj28a4jrcrc50va4garrpy096lcpv2qlbk3fj3g5xss8n
NarSize: 68449104
References: 306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26 67sgw1jgshmkq1848irrhn45490izz0x-svelte-language-server-0.16.9 6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2
Deriver: 36z1kaapllnm5lpdf1zbnm8shh3ikq25-svelte-language-server-0.16.9.drv
Sig: cache.nixos.org-1:GR2SI1V0+yD9tqXN83BiCxLzcM78BTX19ZXUEl4ts4IoYTKkRiyLiqm+OarV/UMyljBRlQHO04qow/GD2nuZCA==

It seems to be different from the package on master.

Suyashtnt commented 4 months ago

Thats strange because I'm just using a devenv with nixpkgs nightly. I'll test it once I get home

Suyashtnt commented 4 months ago

nix build nixpkgs#svelte-language-server --rebuild

that seems to have worked. Weird

Suyashtnt commented 4 months ago

Oh wait I forgot I'm manually overriding some stuff to add stuff to the svelte path. I'm stupid