-
Notifications
You must be signed in to change notification settings - Fork 299
Bugfix/Fix dynamic import for shell env #2640
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2640 +/- ##
=========================================
+ Coverage 45.43% 45.7% +0.27%
=========================================
Files 361 361
Lines 14563 14603 +40
Branches 1912 1917 +5
=========================================
+ Hits 6617 6675 +58
+ Misses 7721 7700 -21
- Partials 225 228 +3
Continue to review full report at Codecov.
|
Whilst the current change restores previous env reading functionality an issue which it raises (this was raised as a separate issue I currently can't find) is that if a user has a problematic script or command in their zsh or bashrc etc. then oni's initialisation will hang. As an example I previously used This may have something to do with running the shell interactively or not, its not clear what the exact issue is, I think an interim solution is raising the issue with users that complex scripts might block the process and should have a guard around them (not sure what form this would take, would be specific to the users rc file) or perhaps forking shellenv or raising a PR/issue to have it not block in those cases |
Following further investigation seems the issue only occurs as a result of very unusual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave it a test on Windows and env looks how I'd expect!
Looks good!
The
shell env
package has been silently failing meaning that fixes that allow oni to read in a user's env var have regressed. This happened when we upgradedwebpack
because with the new version of webpack, dynamic imports now return objects with the shape{ default: DefaultFnExport, aVar: var }
Also upgraded the
shellenv
package as is since been upgraded.