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

gsts: init 5.0.3 #344604

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

gsts: init 5.0.3 #344604

wants to merge 1 commit into from

Conversation

dephiros
Copy link

@dephiros dephiros commented Sep 26, 2024

fix #344461

Description of changes

Things done

  • - Modify pkgs/development/node-packages/node-packages.json to add, update or remove package entries to have it included in nodePackages and nodePackages_latest.

  • Run the script: ./pkgs/development/node-packages/generate.sh

  • Built on platform(s)

    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:

  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage

  • Tested basic functionality of all binary files (usually in ./result/bin/)

  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.


Add a 👍 reaction to pull requests you find important.

@dephiros
Copy link
Author

dephiros commented Sep 26, 2024

This is currently not working. I am running into this error when trying to build nix-build -A gsts:

npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/@xmldom%2fxmldom failed: cache mode is 'only-if-cached' but no cached response 
is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/9kpk62aa3rfy7r96aa07352z2cys5b0l-gsts
-5.0.3-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:
1. Set `makeCacheWritable = true`
  Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for th
e actual error.
2. Set `npmFlags = [ "--legacy-peer-deps" ]`

error: builder for '/nix/store/vdjv0xc4rmrkz9jkdvxbvrr1h4cljqn5-gsts-5.0.3.drv' failed with exit code 1;
       last 20 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/6hjlscbr8kxf1n4blb3snjq0k0npy333-source
       > source root is source
       > Running phase: patchPhase
       > Executing npmConfigHook
       > Configuring npm
       > Validating consistency between /private/tmp/nix-build-gsts-5.0.3.drv-0/source/package-lock.json and /nix/store/9kpk62a
a3rfy7r96aa07352z2cys5b0l-gsts-5.0.3-npm-deps/package-lock.json
       > \|Installing dependencies
       > npm error code ENOTCACHED
       > npm error request to https://registry.npmjs.org/@xmldom%2fxmldom failed: cache mode is 'only-if-cached' but no cached 
response is available.
       > npm error Log files were not written due to an error writing to the directory: /nix/store/9kpk62aa3rfy7r96aa07352z2cys
5b0l-gsts-5.0.3-npm-deps/_logs
       > npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
       >
       > ERROR: npm failed to install dependencies
       >
       > Here are a few things you can try, depending on the error:
       > 1. Set `makeCacheWritable = true`
       >   Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above th
at for the actual error.
       > 2. Set `npmFlags = [ "--legacy-peer-deps" ]`
       >
       For full logs, run 'nix log /nix/store/vdjv0xc4rmrkz9jkdvxbvrr1h4cljqn5-gsts-5.0.3.drv'.

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message doesn't follow contributing guidelines.

@@ -105,6 +105,7 @@
, "graphql-cli"
, "graphql-language-service-cli"
, "grunt-cli"
, "gsts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use buildNpmPackage instead. See #229475.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment @dotlambda.
Would you happen to know how to address the error in #344604 (comment)?
🙏

@dephiros dephiros changed the title Add gsts and run generate.sh gsts: init 5.0.4 Sep 27, 2024
@dephiros dephiros changed the title gsts: init 5.0.4 gsts: init 5.0.3 Sep 27, 2024
@Deliganli
Copy link

I have managed to get another error by adding this below to buildNpmPackage;

npmFlags = [ "--silent" ];
       last 10 log lines:
       > Validating consistency between /build/source/package-lock.json and /nix/store/c7h4afsifl6vi42pabq50b4wq1s2nbs3-gsts-npm-deps/package-lock.json
Installing dependencies
       >
       > ERROR: npm failed to install dependencies
       >
       > Here are a few things you can try, depending on the error:
       > 1. Set `makeCacheWritable = true`
       >   Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
       > 2. Set `npmFlags = [ "--legacy-peer-deps" ]`

and I think better error with below added;

makeCacheWritable = true;
       last 10 log lines:
       > npm error request to https://registry.npmjs.org/@xmldom%2fxmldom failed: cache mode is 'only-if-cached' but no cached response is available.
       > npm error A complete log of this run can be found in: /build/cache/_logs/2024-09-29T18_15_14_697Z-debug-0.log
       >
       > ERROR: npm failed to install dependencies
       >
       > Here are a few things you can try, depending on the error:
       > 1. Set `makeCacheWritable = true`
       >   Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
       > 2. Set `npmFlags = [ "--legacy-peer-deps" ]`

However couldn't progress further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: node-packages/gsts
4 participants