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 on android #296

Merged
merged 1 commit into from Dec 11, 2020
Merged

fix on android #296

merged 1 commit into from Dec 11, 2020

Conversation

yozman
Copy link
Contributor

@yozman yozman commented Nov 17, 2020

What is the purpose of this pull request?

fix on android

What changes did you make? (Give an overview)

fix concurrency minimal value

Copy link
Owner

@mrmlnc mrmlnc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks 🎉

@@ -3,7 +3,7 @@ import * as os from 'os';

import { FileSystemAdapter, Pattern } from './types';

const CPU_COUNT = os.cpus().length;
const CPU_COUNT = Math.max(os.cpus().length, 1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to the code above that this is a specific hack for android?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on Android, os.cups().length equals 0

@mrmlnc mrmlnc self-assigned this Dec 4, 2020
@codekitchen
Copy link

👍 I was going to send over this same change -- os.cpus() returns an empty array on current builds of VSCode for Apple Silicon (and possibly all Electron apps on Apple Silicon? Not sure yet). Though I'm guessing this will change eventually.

@mrmlnc
Copy link
Owner

mrmlnc commented Dec 9, 2020

@mrmlnc mrmlnc merged commit 800aea6 into mrmlnc:master Dec 11, 2020
@mrmlnc
Copy link
Owner

mrmlnc commented Dec 11, 2020

Thanks for the contributing 🎉

@dotsam
Copy link

dotsam commented Dec 24, 2020

@mrmlnc Would it be possible to cut a new release as this fixes issues with a number of downstream projects, and I'm sure they'd all love a stable version to point to rather than pointing to master. Thanks!

@antfu
Copy link

antfu commented Jan 12, 2021

I have setup the nightly builds for fast-glob against the master branch. Until the next release, you can use it now as a workaround, see:

https://www.npmjs.com/package/@knightly/fast-glob

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.

None yet

5 participants