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

Resolve node modules correctly inside symlinked plugins #1686

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

jbeezley
Copy link
Contributor

There is an unfortunate issue resolving node modules from files symlinked from outside of the main girder path. It came up in the large_image plugin when trying to resolve the external geojs dependency. It looks like the node developers are treating it as a WONTFIX. See here for the gory details: nodejs/node#3402.

In terms of the fix here, it would be better if I could inject the NODE_PATH environment variable inside the Gruntfile.js, but it looks like that variable needs to be set before loading the script. This probably breaks windows builds, but I can't think of any other way to do it besides telling users to always set that environment variable manually.

@codecov-io
Copy link

Current coverage is 90.68% (diff: 100%)

Merging #1686 into master will increase coverage by 0.02%

@@             master      #1686   diff @@
==========================================
  Files           254        254          
  Lines         13871      13871          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          12576      12579     +3   
+ Misses         1295       1292     -3   
  Partials          0          0          

Powered by Codecov. Last update 6a45560...59a9982

@ghost
Copy link

ghost commented Dec 4, 2016

This nodejs/node issue on fixing symlinks might be of interest to you

@jbeezley jbeezley merged commit f8b2f78 into master Dec 5, 2016
@jbeezley jbeezley deleted the fix-symlink-resolve branch December 5, 2016 14:13
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