catppuccin / vscode

🦌 Soothing pastel theme for VSCode & Azure Data Studio

Home Page:https://marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc-pack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nix build is broken

toast003 opened this issue Β· comments

I use flakes and I tried both using the repo as-is and making it follow nixpkgs 2c7f3c0fb7c08a0814627611d9d7d45ab6d75335

Here are the nix logs:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/0wglhmf2ww2n3sclwvz11kxg2bzxpf3s-qlsdf7pgv9q5z8xi1ybc64kmf22nkiyn-source
source root is qlsdf7pgv9q5z8xi1ybc64kmf22nkiyn-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
➀ YN0000: · Yarn 4.0.2
➀ YN0000: β”Œ Resolution step
➀ YN0000: β”” Completed in 0s 309ms
➀ YN0000: β”Œ Fetch step
➀ YN0056: β”‚ @rollup/rollup-linux-arm64-gnu@npm:4.6.0: Cache entry required but missing for @rollup/rollup-linux-arm64-gnu@npm:4.6.0; consider defining supportedArchitectures to cache packages for multiple systems
➀ YN0056: β”‚ @rollup/rollup-linux-x64-gnu@npm:4.6.0: Cache entry required but missing for @rollup/rollup-linux-x64-gnu@npm:4.6.0; consider defining supportedArchitectures to cache packages for multiple systems
➀ YN0000: β”” Completed in 0s 263ms
➀ YN0000: · Failed with errors in 0s 666ms

What's your system architecture? I just tried on my aarch64-darwin and it works fine for me, I'm currently checking aarch64-linux.

The build should be fixed with 6d7abef, it passed on CI.
Thanks for reporting the build problem πŸ™‚

Can confirm, it builds now!

Thank you for the fix ^^

It broke again :(

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/b98xgj1fmj955m31kh34v53xlzgw0pvw-pd1s3j2gid0rfr82shsfsn9w843qbhrk-source
source root is pd1s3j2gid0rfr82shsfsn9w843qbhrk-source
@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.0.2
➀ YN0000: β”Œ Resolution step
➀ YN0000: β”” Completed in 0s 545ms
➀ YN0000: β”Œ Fetch step
➀ YN0000: β”” Completed in 1s 307ms
➀ YN0000: β”Œ Link step
➀ YN0007: β”‚ esbuild@npm:0.19.8 must be built because it never has been before or the last one failed
➀ YN0007: β”‚ keytar@npm:7.9.0 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: β”‚ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
➀ YN0000: β”‚ keytar@npm:7.9.0 STDOUT 
➀ YN0000: β”‚ keytar@npm:7.9.0 STDOUT > keytar@7.9.0 build
➀ YN0000: β”‚ keytar@npm:7.9.0 STDOUT > node-gyp rebuild
➀ YN0000: β”‚ keytar@npm:7.9.0 STDOUT 
➀ YN0000: β”‚ keytar@npm:7.9.0 STDERR sh: line 1: /build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/node_modules/.bin/node-gyp: cannot execute: required file not found
➀ YN0009: β”‚ keytar@npm:7.9.0 couldn't be built successfully (exit code 127, logs can be found here: /build/xfs-1afc7355/build.log)
➀ YN0000: β”” Completed in 36s 132ms
➀ YN0000: · Done in 38s 640ms
configurePhase completed in 48 seconds
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
undefined:1


SyntaxError: /build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/package.json: Unexpected end of JSON input
    at parse (<anonymous>)
    at Module._extensions..json (node:internal/modules/cjs/loader:1453:39)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at JoyCon.recusivelyResolve (/build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/node_modules/joycon/lib/index.js:78:22)
    at async loadTsupConfig (/build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/node_modules/tsup/dist/chunk-7G76EW2R.js:39:22)
    at async build (/build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/node_modules/tsup/dist/index.js:2643:51)
    at <anonymous> (/build/pd1s3j2gid0rfr82shsfsn9w843qbhrk-source/build.ts:16:3)

Node.js v20.10.0

I can't reproduce this πŸ€”

Are you using any overrides?

Yes, but nothing that affects anything node related afaik
Let me check

EDIT: Missread it, thought you said overlays
I do, nixpkgs follows a9bf124c46ef298113270b1f84a164865987a91c

Strangely enough I can't reproduce it either, took a break to do some other stuff earlier and now it just builds?
I'll build my flake on my server and see if I can reproduce it there

Yes, but nothing that affects anything node related afaik Let me check

It does, the rebuild changes the package.json, just before bundling the VSIX.
And I meant overrides like pkgs.catppuccin-vsc.overrides { accent = "pink"; }.

I don't

If you're not applying any overrides (which are the main reason for using this flake), I'd recommend just using https://github.com/nix-community/nix-vscode-extensions.
It will save you a ton of rebuild time.

I know, I started using the flake so that I can use overrides but I got distracted with something else, so I never ended up using them πŸ˜…

I happen to use mauve too so as the accent color so I didn't remember either

Yeah I can't reproduce it now

Reducing the number of dependencies and the other improvements mentioned in #218 should hopefully make this a faster and more reliable flake in the future.

Feel free to re-open this issue if your builds start failing again.