Skip to content

Conversation

gribnoysup
Copy link
Collaborator

This change should finally allow us to include compass-shell with new runtime in compass without any issues. Current implementation doesn't work because worker_threads Worker when spawned in electron environment can't resolve anything correctly inside the .asar bundle, so worker code just fails when trying to resolve interruptor (that needs to stay external because it has a native module dependency). As a workaround we will ensure that if we are trying to import node-runtime-worker-thread from inside the .asar archive we would instead look for the unpacked version and hard fail if it doesn't exist as requiring one that is not unpacked would not work correctly anyway.

Co-authored-by: Anna Henningsen <anna@addaleax.net>
@gribnoysup gribnoysup merged commit 8a80936 into master Mar 4, 2021
@gribnoysup gribnoysup deleted the mongosh-618-change-runtime-importing-approach branch March 4, 2021 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants