Open chunjiw opened 8 months ago
Is it behaving the same with version 4.20.1
?
I'm sorry, I just started my nix journey, don't really know how to change version. I simply put code-server
in systemPackages
. Can you briefly tell me how to change version, or point me to relevant docs? Thank you!
Looks a bit like the build command was oomed. Can you take a look at the memory usage during the build?
Thank you for the suggestion, I have 8GB ram in the VM, indeed it seems not enough, memory usage can be as high as 7.3 GB during build. I doubled the RAM, but then I got another error during build:
error: builder for '/nix/store/d77dl41r3kk6qk31sl1gnzvjp3r0g1h2-code-server-4.19.1.drv' failed with exit code 1;
last 10 log lines:
> warning npm-shrinkwrap.json found. This will not be updated or respected. See https://yarnpkg.com/en/docs/migrating-from-npm for more information.
> [1/4] Resolving packages...
> error An unexpected error occurred: "https://registry.yarnpkg.com/@microsoft%2f1ds-core-js: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
> info If you think this is a bug, please open a bug report with the information provided in "/nix/store/2dh9n6z77aimxf41s540lmjgczi84vy8-code-server-4.19.1/libexec/code-server/lib/vscode/yarn-error.log".
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> You may not have the required dependencies to build the native modules.
> Please see https://github.com/coder/code-server/blob/main/docs/npm.md
> error Command failed with exit code 1.
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
>
For full logs, run 'nix log /nix/store/d77dl41r3kk6qk31sl1gnzvjp3r0g1h2-code-server-4.19.1.drv'.
error: 1 dependencies of derivation '/nix/store/skyfhdqz489rd3wczl0ilbji5f4q89p2-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a53jvj76q83mhnp8nxik2s5amp9izwj2-nixos-system-nixplay-24.05.20240131.b8b232a.drv' failed to build
I believe I finally got this fixed while updating to 4.23.1.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
I'm using flake unstable channel
Notify maintainers
@drupol
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.