Fails to build on NixOS
tylergets opened this issue Β· comments
Hey there, I wanted to try out this theme and installed it to my Flake. The build seems to be failing due to an esbuild issue Error: spawn ETXTBSY
Build logs:
Running phase: unpackPhase
unpacking source archive /nix/store/gjbwzygb01piyxsr2nbpaznp4mx4nkp2-vwqff6xv24vgk30pvw93kalv4b50g2ph-catppuccin-vsc-3.14.0
source root is vwqff6xv24vgk30pvw93kalv4b50g2ph-catppuccin-vsc-3.14.0
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
β€ YN0000: Β· Yarn 4.2.2
β€ YN0000: β Resolution step
β€ YN0000: β Completed
β€ YN0000: β Fetch step
β€ YN0000: β Completed in 0s 335ms
β€ YN0000: β Link step
β€ YN0005: β keytar@npm:7.9.0 lists build scripts, but its build has been explicitly disabled through configuration.
β€ YN0007: β esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
β€ YN0007: β esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
β€ YN0007: β esbuild@npm:0.20.2 must be built because it never has been before or the last one failed
β€ YN0007: β es5-ext@npm:0.10.64 must be built because it never has been before or the last one failed
β€ YN0000: β es5-ext@npm:0.10.64 STDERR Error: spawn ETXTBSY
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β es5-ext@npm:0.10.64 STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β es5-ext@npm:0.10.64 couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-52899df9/build.log)
β€ YN0000: β esbuild@npm:0.19.12 STDERR Error: spawn ETXTBSY
β€ YN0000: β esbuild@npm:0.19.12 STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β esbuild@npm:0.19.12 couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-f493228f/build.log)
β€ YN0000: β esbuild@npm:0.19.12 STDERR Error: spawn ETXTBSY
β€ YN0000: β esbuild@npm:0.19.12 STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β esbuild@npm:0.19.12 STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β esbuild@npm:0.19.12 couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-9e63febe/build.log)
β€ YN0000: β esbuild@npm:0.18.20 STDERR Error: spawn ETXTBSY
β€ YN0000: β esbuild@npm:0.18.20 STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β esbuild@npm:0.18.20 STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β esbuild@npm:0.18.20 couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-71e9a837/build.log)
β€ YN0000: β esbuild@npm:0.20.2 STDERR Error: spawn ETXTBSY
β€ YN0000: β esbuild@npm:0.20.2 STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β esbuild@npm:0.20.2 STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β esbuild@npm:0.20.2 couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-df7c4062/build.log)
β€ YN0007: β @catppuccin/vscode-monorepo@workspace:. must be built because it never has been before or the last one failed
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR Error: spawn ETXTBSY
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at ChildProcess.spawn (node:internal/child_process:421:11)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at Object.spawn (node:child_process:761:9)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at JY (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:9:52616)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at LE.implementation (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:159:1348)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at LE.exec (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1414)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at LE.run (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:1585)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at oce (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:165:7428)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at async Eot (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:16)
β€ YN0000: β @catppuccin/vscode-monorepo@workspace:. STDERR at async u (/nix/store/vz0jbszxc5lvqp418v3dc1gx1jfr10b5-yarn.js:167:147)
β€ YN0009: β @catppuccin/vscode-monorepo@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /build/xfs-5e9c036c/build.log)
β€ YN0000: β Completed in 2s 165ms
β€ YN0000: Β· Failed with errors in 2s 751ms
Any help would be appreciated!
Hi, I can't replicate this locally or via the CI. π€
Can you try the last release pushed to FlakeHub? (https://flakehub.com/f/catppuccin/vscode/3.*.*.tar.gz
)
I can replicate this - I'll try the FlakeHub release when I get home
build failure on both b7a8806f7532a091b0170f281dbc7f35c3fc7761
, also fails on https://flakehub.com/f/catppuccin/vscode/3.14.0.tar.gz
(latest)
I was also able to replicate this once I updated the nixpkgs flake to the latest commit on nixos-unstable
, so it seems that something in nixpkgs triggers errors when building this package.
I tried to investigate further but didn't find anything, unfortunately.
I can also confirme using the latest release on FlakeHub doesn't work either, it fails to build with the same errors.
I think that once you'll update the nixpkgs flake in this repo, you'll be able to replicate the issue on the CI π€
And I think it fails on our side because we use inputs.nixpkgs.follows = "nixpkgs";
on the catppuccin-vsc
flake
Edit : I tried removing inputs.nixpkgs.follows = "nixpkgs";
on the catppuccin-vsc
flake and it still fails to build. Either I'm not understanding how this works, or the root cause lies elsewhere π€·
Going to reopen this issue since it seems to be a flaky build at the moment.
I quickly tried to fix it by reverting to nodejs_18
in nix/default.nix
, but this didn't help. Neither did upgrading all packages (I was hoping for a random fix upstream somewhere).
FYI, I recently retired from Catppuccin (catppuccin/catppuccin#2402) so if you want to see continued Nix support for this repo, someone else would have to maintain it.
wow! seems to actually be a kernel regression not exclusive to nix
I think that if you're having this error, you're already on kernel 6.9.1 (which is affected by the regression @reidlabwastaken talks about), which means you're basically trapped π
You need to update to a newer kernel version to be able to build the Catppuccin theme again, but in order to update, you need to temporarily comment out that Catppuccin theme, that's what I ended up doing.
Once you reboot into a newer kernel version (for me it was 6.9.3), you'll be able to build everything again π