question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency calling chdir

See original GitHub issue

One 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:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
scholtzmcommented, Jan 15, 2017

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. Since chdir is now just a dummy function, it allows me to package everything inside an asar archive.

1reaction
scholtzmcommented, Jan 12, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found