Dependency calling chdir
See original GitHub issueOne of my dependencies (a critical one) calls chdir
. According to docs, working directory cannot be set.
How are others dealing with this issue? Is there any way around this?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
chdir() — Change the working directory - IBM
A loop exists in symbolic links. This error is issued if the number of symbolic links detected in the resolution of pathname is...
Read more >Is using chdir() the only way to change the working directory in ...
1 Answer 1 ... chdir() is the only way to change the current working directory of the process. If you are not allowed...
Read more >chdir(), fchdir() and getcwd() in C - OpenGenus IQ
The chdir function is used to change the current working directory of the program or process by passing the path to the function...
Read more >- chdir()
The chdir() function changes the current working directory to path , which can be relative to the current working directory or an absolute...
Read more >util.chdir - npm
This module uses yarn to manage dependencies and run scripts for development. To install as a global package and cli: $ yarn global...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can see my very specific monkey patch here: https://github.com/scholtzm/punk/blob/master/src/utils/monkey-patch.js
I override
chdir
with custom logic and then prepend path for a small set of files. Sincechdir
is now just a dummy function, it allows me to package everything inside an asar archive.@Unforgiven-wanda Comments here might interest you if you still haven’t solved your problem: https://github.com/electron/electron/issues/8206
Closing this since there’s not much to be done here.