- Notifications
You must be signed in to change notification settings - Fork744
refactor: switch to fast-glob#1153
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedFeb 18, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #1153 +/- ##==========================================+ Coverage 97.28% 97.31% +0.03%========================================== Files 36 36 Lines 1364 1380 +16 ==========================================+ Hits 1327 1343 +16 Misses 37 37 ☔ View full report in Codecov by Sentry. |
skagedal commentedJun 9, 2024
Hello! I was wondering if you are planning to merge this. There now also deprecation warnings being displayed because the As a possible data point regarding the safety of this switch, I tried running theeslint test suite using this branch for |
kmashint commentedJun 12, 2024
I'm also interested in this fix to avoid potential global and inflight issues. |
nfischer commentedJun 14, 2024
Hey, thanks for the interest. It's good to hear that this is important to other folks in the community. This is going to be tricky for me to work on. I don't have a windows machine anymore so it's going to be difficult for me to get the tests passing on Windows. I know that a lot of projects only use ShellJS on Mac or Linux, however Windows is still critical for some users. If anyone has experience developing on Windows and is able to give this branch a try, I'd love to collaborate on this together. |
skagedal commentedJun 14, 2024
That makes sense! I also don't currently have a Windows machine, but am a bit curious and might be able to take a look together with a friend who has one. (Not sure when though, and while I do have some Windows development experience it was a long time ago, so if anyone else who is able to help comes along that might be preferable :) ) |
kmashint commentedJun 17, 2024
I have Windows 10, so I'll give try the branch tonight. |
kmashint commentedJun 18, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
From a first pass on Windows 10 these look like platform-dependent differences. Maybe they should be skipped for Windows. I'll check again in some more detail tomorrow. |
kmashint commentedJun 19, 2024
I've created fixes for Windows with this pull-request, thanks! |
nfischer commentedJun 21, 2024
Someone pointed out that Issue#1148 is actually caused by our dependency on the glob library. Switching to |
5e83898 to53709e2Comparekmashint commentedJun 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
nfischer commentedJun 23, 2024
a6791ed to447216dComparebenmccann commentedJun 28, 2024
This seems like a breaking change since the syntax for
|
nfischer commentedJun 28, 2024
This PR includes backward compat for some (most?) of the old If people are motivated to help with backward compat, I would appreciate support in writing test cases (example PR#1164) and writing compat code.
Agree that dropping makes sense if we do a breaking change release. I'm holding off on merging until I can decide on the right path to release this (e.g., the choice would be between releasing as 0.9.0 or as 0.8.6). I appreciate your patience while I think through this.
Do you have a specific concern with the dependency tree? |
benmccann commentedJun 29, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ah, thanks. I'll admit I just read the change to docs and missed the compat layer. It'd probably be worth a mention in the docs that the old options still work though are discouraged. It could also print some kind of deprecation warning to help users migrate to the new options. Or maybe that's unnecessary already being done at a higher level as I see the options in general are now deprecated since the last release. I would say the compat layer feels quite tricky to make 100% compatible and I wouldn't be surprised if there are edge cases
|
jpshack-at-palomar commentedJul 5, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just to clarify that#1148 would also be resolved by upgrading to a supported version of glob. If this isn't going in soon, would you take a PR just to upgrade glob? |
markmssd commentedJul 18, 2024
We landed here because of Snyk security vulnerabilities as well. I'd be glad to help with some guidance to get this PR through! |
nfischer commentedOct 7, 2024
I still intend to get this change landed, however I'm going to give a brief update that I do not consider this to be a security issue. Please see my response on#1149 (comment). In short, shelljs never calls the |
benmccann commentedOct 7, 2024
There is now a new library called |
gyanverma2 commentedNov 17, 2024
any luck on merging this branch? |
This removes `node-glob` in favor of `fast-glob`. The main motivationfor this is because `node-glob` has a security warning and I can'tupdate to `node-glob@9` unless we drop compatibility for node v8.Switching to `fast-glob` seems to be fairly straightforward, althoughsome options need to be changed by default for bash compatibility.Fixes#828Fixes#1149
13cfe8a intomasterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
This removes
node-globin favor offast-glob. The main motivationfor this is because
node-globhas a security warning and I can'tupdate to
node-glob@9unless we drop compatibility for node v8.Switching to
fast-globseems to be fairly straightforward, althoughsome options need to be changed by default for bash compatibility.
Fixes#828
Fixes#1149
Fixes#1148