Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with spaces in paths #132

Merged
merged 1 commit into from
Jun 28, 2018
Merged

fix issues with spaces in paths #132

merged 1 commit into from
Jun 28, 2018

Conversation

mafintosh
Copy link
Contributor

Doesn't seem to be a way to get NODE_OPTIONS to accept -r requirements with spaces in them (prob a node core bug / missing feature), so to support paths with spaces we instead use good ol' NODE_PATH to point to a folder where we have your injection requires and the then load them as node_modules.

@mafintosh mafintosh merged commit 07c0595 into master Jun 28, 2018
@mafintosh mafintosh deleted the path-in-spaces-hot-fix branch June 28, 2018 08:21
@mafintosh
Copy link
Contributor Author

2.5.1

@AndreasMadsen
Copy link
Contributor

Wow, that is sad :( Should we open an issue?

@mcollina
Copy link
Contributor

mcollina commented Jun 28, 2018 via email

@mafintosh
Copy link
Contributor Author

Yea, I'll do it

wentout added a commit to wentout/node-clinic-doctor that referenced this pull request Apr 11, 2019
clinicjs#132

But ths still relates to current state
clinicjs/node-clinic#148

So there might be changes done to fix NODE_PATH back, for legacy projects.
wentout added a commit to wentout/node-clinic-bubbleprof that referenced this pull request Apr 11, 2019
clinicjs/node-clinic-doctor#132

But ths still relates to current state
clinicjs/node-clinic#148

So there might be changes done to fix NODE_PATH back, for legacy projects.
goto-bus-stop pushed a commit to clinicjs/node-clinic-bubbleprof that referenced this pull request Apr 25, 2019
* Seems this doesn't matter anymore
clinicjs/node-clinic-doctor#132

But ths still relates to current state
clinicjs/node-clinic#148

So there might be changes done to fix NODE_PATH back, for legacy projects.

* fix CI comma

* oneliner for makeInjectPath

* Additional Fix after code-review.
Thanks to @goto-bus-stop !
NODE_PATH works from both prospects.

* Finally got rid of broken parts.
goto-bus-stop pushed a commit that referenced this pull request Apr 25, 2019
* Seems this doesn't matter anymore
#132

But ths still relates to current state
clinicjs/node-clinic#148

So there might be changes done to fix NODE_PATH back, for legacy projects.

* fix CI comma & occasionally replaced logger path

* onliner for makeInjectPath

* Additional Fix after code-review.
Thanks to @goto-bus-stop !
NODE_PATH works from both prospects.

* Finally got rid of broken parts.

* investigation checks issues

* investigation checks issues 2

* reverting changes for the test
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.

3 participants