| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
There is code for similar purposes in tools/install.py and it only does:
Lines 23 to 24 in a8b5192
Maybe we can just do the same so don't have to eval the config then redump it here..
Sorry, something went wrong.
There was a problem hiding this comment.
imo eval is cleaner, what if (for some ungodly reason) a config value has an escaped quote in it.
Sorry, something went wrong.
There was a problem hiding this comment.
It does the right thing. config.gypi is produced by pprint.pformat() and always uses single quotes for strings. \'hola\' becomes \"hola\" and that's legal JSON.
Sorry, something went wrong.
|
no good on windows |
Sorry, something went wrong.
|
something somewhere is matching c:\ during startup, if anyone knows what it might be please let me know, i'm searching through all the bootstrap code now edit: i think its happening here? but i don't know where its being called. i'm still searching around |
Sorry, something went wrong.
Sorry, something went wrong.
|
fwiw the commit prefix should be with a comma, probably either tools,bootstrap:, tools,lib: or tools,src. |
Sorry, something went wrong.
It seems that splitRoot code is only used by realpath, which in turn is used for module resolution... (The code link points to where fs is loaded so... some extra info maybe) Fs load points in bootstrapOn BSD that happens here: node/lib/internal/bootstrap_node.js Lines 78 to 81 in 1d2ab79 If ESM is enabled, it is possible that this tree of loads loads fs node/lib/internal/bootstrap_node.js Lines 106 to 110 in 1d2ab79 If there are --require modules, fs is loaded from module here: node/lib/internal/bootstrap_node.js Lines 583 to 586 in 1d2ab79 Otherwise, fs is loaded from module here: node/lib/internal/bootstrap_node.js Line 201 in 1d2ab79 |
Sorry, something went wrong.
| # if its a gypi file we're going to want it as json | ||
| # later on anyway, so get it out of the way now | ||
| if name.endswith(".gypi"): | ||
| lines = re.sub(r'#.*?\n', '', lines) |
There was a problem hiding this comment.
Does python maybe offer a package that converts a dict into json? That would be cleaner than replacing characters.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
ah. missed that context. thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
PR-URL: #19140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #19140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #19140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: nodejs#19140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #19140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
bootstrap, tools