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: handle long globs #16233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: handle long globs #16233

wants to merge 1 commit into from

Commits on Apr 30, 2024

  1. fix: handle long globs

    prettier wraps lstat to look for cases where a file does not exist...
    When it does not exist, it will try treating the argument as a glob.
    
    For very long globs, the system will return ENAMETOOLONG instead of ENOENT.
    This is still a case where the file does not exist and where a glob could
    exist.
    
    Instead of letting that error bubble up as an uncaught exception,
    swallow it in the same manner as ENOENT.
    jsoref committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    87427ba View commit details
    Browse the repository at this point in the history