Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Asset naming algorithm causes ENAMETOOLONG when using react-navigation and pnpm #748

Open

Description

The name chosen in:

const normalizedName =
url.length === 0
? filename
: `${url.replace(pathSepPattern, '_')}_${filename}`;
const longName = `${normalizedName
.toLowerCase()
.replace(/[^a-z0-9_]/g, '')}.${type}`;

causes ENAMETOOLONG due to unknown reasons (the name is below 255 characters which should be fine on Linux)

error ▶︎ [Error: ENAMETOOLONG: name too long, 
open '/.../drawable-mdpi/node_modules_pnpm_reactnavigation_stack551_a182da6647d2184b7d281770a34a973a_node_modules_reactnavigation_stack_src_views_assets_backiconmask.png'] 
{ errno: -36, 
 code: 'ENAMETOOLONG', 
 syscall: 'open', 
 path: '/.../drawable-mdpi/node_modules_pnpm_reactnavigation_stack551_a182da6647d2184b7d281770a34a973a_node_modules_reactnavigation_stack_src_views_assets_backiconmask.png' 
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /