-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support nodejs modules from github #860
Comments
note: It works well using the tar.gz npm supports both, so it would be worth documenting this behavior in case this becomes a |
@dacevedo12 As we recently migrated to node2nix, it would be nice to tests if this works now. |
Seems node2nix is capable of it, but it doesn't find the git binary
|
Maybe by adding |
It only worked at makes level (make-node-js-modules/default.nix), by adding git via ssh doesn't work but that's a limitation from node2nix svanderburg/node2nix#309 git via https works fine with the aforementioned patch |
@dacevedo12 A PR adding git to the builtin is welcome! |
- added git binary to enable node2nix to fetch deps from git repos
- added git binary to enable node2nix to fetch deps from git repos Signed-off-by: David Acevedo <[email protected]>
feat(build): #860 node2nix from git repos
npm supports installing directly from github repos, which comes in handy as sometimes, maintainers take a long time to publish new versions to npm
https://docs.npmjs.com/cli/v9/configuring-npm/package-json#git-urls-as-dependencies
https://docs.npmjs.com/cli/v9/configuring-npm/package-json#github-urls
perhaps the structure in the package-lock changes a bit, causing makes to fail when installing the deps
Tested with
npm i --save https://github.com/cloudinary-devs/gatsby-source-cloudinary#19a2115fdf876c55ff74756e6dfd8d775bad636c
The text was updated successfully, but these errors were encountered: