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

Yarn build fails due to ENAMETOOLONG #10657

Closed
rafaelromcar-parabol opened this issue Jan 10, 2025 · 3 comments · Fixed by #10672
Closed

Yarn build fails due to ENAMETOOLONG #10657

rafaelromcar-parabol opened this issue Jan 10, 2025 · 3 comments · Fixed by #10672
Assignees
Labels
bug DX Developer Experience

Comments

@rafaelromcar-parabol
Copy link
Contributor

Issue - Bug

  • How serious is the bug? P3
  • OS: macOS / Linux / Windows / ?
  • Browser: Chrome / Safari / Lynx / ? + version
  • Node version: node --version
  • NPM version: npm --version

I'm getting the following error when building from my usual dev folder:

{"time":"2025-01-10T11:14:12.788Z","level":"info","message":"building mattermost-plugin []"}
$ /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/node_modules/.bin/webpack --config ./prod.webpack.config.js --env=minimize=false
clientRoot /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/packages/mattermost-plugin
[webpack-cli] [Error: ENAMETOOLONG: name too long, open '/home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/build/mattermost-plugin_vendors-node_modules_mattermost_compass-icons_components_index_js-node_modules_mui_material_I-cb4761_ae7fcdbbe6845a7f2693.js.map'] {
  errno: -36,
  code: 'ENAMETOOLONG',
  syscall: 'open',
  path: '/home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/build/mattermost-plugin_vendors-node_modules_mattermost_compass-icons_components_index_js-node_modules_mui_material_I-cb4761_ae7fcdbbe6845a7f2693.js.map'
} 

My Parabol folder is in /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol which is long but not that long.

Acceptance Criteria (optional)

Users can:

  • Build the application in folders that have long paths
    Triage is performed to find the root cause of the bug, timeboxed to ~1 hour.

Estimated effort: 1 hour to triage. More if root cause is already identified.

@rafaelromcar-parabol
Copy link
Contributor Author

It also failed using the folder /home/rafaelromcar-parabol/parabol-test to build the application

@Dschoordsch
Copy link
Contributor

Dschoordsch commented Jan 13, 2025

I think we should shorten the filename, but I'm also curious about your system limits. From what I found the filename limit should be 255 and the path limit around 4096 (it's like this on my archlinux ext4 partition). The full path is less than 255 characters, so it should well fit within these boundaries.

@rafaelromcar-parabol
Copy link
Contributor Author

@Dschoordsch I've found the same. The path limit is 4096 according to getconf PATH_MAX / and my filesystem is ext4, so 255 for the filename (confirmed with getconf NAME_MAX /).

It should work, but when I try ls mattermost-plugin_vendors-node_modules_mattermost_compass-icons_components_index_js-node_modules_mui_material_I-cb4761_ae7fcdbbe6845a7f2693.js.map it says File name too long 🤷🏼‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug DX Developer Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants