meshcentral: rewrite with buildNpmPackage#493026
meshcentral: rewrite with buildNpmPackage#493026doronbehar wants to merge 3 commits intoNixOS:masterfrom
Conversation
8368c55 to
f2e15a4
Compare
f2e15a4 to
890a566
Compare
pyrox0
left a comment
There was a problem hiding this comment.
Changes lgtm but I'm not a user and have no way of testing this.
Thanks for the approval. I guess @Ma27 is the only user really running this, so he is the only user that can actually approve this. |
|
@doronbehar would you mind going to https://github.com/Ylianst/MeshCentral/releases/tag/1.1.57 which makes having our own package-lock.json obsolete? |
Sure, done. Thanks for notifying about this. |
d59e9d1 to
af20377
Compare
|
Also fixed merge conflicts with 9e77da8 . |
| awk <meshcentral.js " | ||
| BEGIN { RS=\"[\n;]\" } | ||
| match(\$0, /(modules|passport) = (\[.*\])$/, a) { print a[2] } | ||
| match(\$0, /(modules|passport).push\(('[^)]+')\)/, a) { print \"[\" a[2] \"]\" } |
There was a problem hiding this comment.
Oh yeah, we have to add this by hand to package.json, otherwise it tries to install it at runtime 🫠
|
OK This was a bit tricky, as nodejs_22 had to be used, I created: So let's see how they will reply. In the meantime I manually include it in the build. @Ma27 could you please verify it works for you now? |
|
@Ma27 it was harder then I thought to persuade upstream to track these optional dependencies in their However I'm still a bit optimistic, and currently I have to wait for them to discuss it with the community. Hence I marked this PR as a draft. Still though, the PR in it's current state is functional, and I'd really like to get the acknowledgment that it works for you and doesn't try to install optional dependencies during runtime. So one more test would be great, please 🙏. |
|
This is looking pretty good now, thanks for putting the effort into this! |
Thanks for taking a look, but have you tested that it works? |
Sorry for not being explicit, yes I have tested that it behaves correctly, as deployed this to an instance and ensured that connections to other machiens work. |
|
@doronbehar any reason this is still a draft? |
05d6b76 to
fca2a88
Compare
Meshcentral developers and users had a meeting online on Thursday (see this list of meetings). I joined this meeting and expressed our concerns regarding them tracking the optional dependencies in the Hence I guess we can merge it pretty much as is (I edited the comment near the optional dependencies patch, and rebased upon latest |
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.