Skip to content

fix node updater#81275

Closed
iv-nn wants to merge 2 commits intoNixOS:masterfrom
iv-nn:fix-node-updater
Closed

fix node updater#81275
iv-nn wants to merge 2 commits intoNixOS:masterfrom
iv-nn:fix-node-updater

Conversation

@iv-nn
Copy link
Contributor

@iv-nn iv-nn commented Feb 28, 2020

Motivation for this change

The following error since #70974 when running ./generate.sh:

./generate.sh: line 5: cd: /home/user/src/nixpkgs/pkgs/development/node-packages/pkgs/development/node-packages: No such file or directory

$NODE_NIXPKGS_PATH already points to /pkgs/development/node-packages, appending it again makes the path erroneous.

Things done

removed duplicate trailing path.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 28, 2020
@iv-nn iv-nn changed the title Fix node updater fix node updater Feb 28, 2020
@iv-nn
Copy link
Contributor Author

iv-nn commented Feb 28, 2020

I should probably have opened an issue to discuss this before. It looked like an easy fix but something else must be wrong since now the composition-v*.nix contains:

nodeEnv = import ../../../../home/user/src/nixpkgs/pkgs/development/node-packages/node-env.nix

I don't know enough about node2nix to find the issue.

@iv-nn
Copy link
Contributor Author

iv-nn commented Feb 28, 2020

It seems to be related to the new temp directory used by generate.sh, node2nix use absolute paths if some of it's parameters are absolute paths.

@rileyinman
Copy link
Contributor

+1, I had to revert my generate.sh to an older commit in order to rebase my node-packages PR to master since the new version kept breaking things. In my opinion the previous version should be restored until this new idea can be fully tested.

iv-nn added 2 commits March 1, 2020 19:50
$NODE_NIXPKGS_PATH already points to /pkgs/development/node-packages,
appending it again makes the path erroneous.
Copy link
Member

@mmilata mmilata left a comment

Choose a reason for hiding this comment

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

Fixes the problem for me:+1:.

@iv-nn
Copy link
Contributor Author

iv-nn commented Mar 28, 2020

Fixed in 216c58a

@iv-nn iv-nn closed this Mar 28, 2020
@iv-nn iv-nn deleted the fix-node-updater branch July 25, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants